Documentation ¶
Index ¶
- type GrpcErr
- func NewApiGrpcError(status codes.Code, detail string, stackTrace string) GrpcErr
- func NewApplicationGrpcError(status codes.Code, detail string, stackTrace string) GrpcErr
- func NewBadRequestGrpcError(detail string, stackTrace string) GrpcErr
- func NewConflictGrpcError(detail string, stackTrace string) GrpcErr
- func NewDomainGrpcError(status codes.Code, detail string, stackTrace string) GrpcErr
- func NewForbiddenGrpcError(detail string, stackTrace string) GrpcErr
- func NewGrpcError(status codes.Code, title string, detail string, stackTrace string) GrpcErr
- func NewInternalServerGrpcError(detail string, stackTrace string) GrpcErr
- func NewNotFoundErrorGrpcError(detail string, stackTrace string) GrpcErr
- func NewUnAuthorizedErrorGrpcError(detail string, stackTrace string) GrpcErr
- func NewValidationGrpcError(detail string, stackTrace string) GrpcErr
- func ParseError(err error) GrpcErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcErr ¶
type GrpcErr interface { GetStatus() codes.Code SetStatus(status codes.Code) GrpcErr GetTitle() string SetTitle(title string) GrpcErr GetStackTrace() string SetStackTrace(stackTrace string) GrpcErr GetDetail() string SetDetail(detail string) GrpcErr Error() string ErrBody() error ToJson() string ToGrpcResponseErr() error }
func NewApiGrpcError ¶
func NewApplicationGrpcError ¶
func NewBadRequestGrpcError ¶
func NewConflictGrpcError ¶
func NewDomainGrpcError ¶
func NewForbiddenGrpcError ¶
func NewGrpcError ¶
func NewValidationGrpcError ¶
func ParseError ¶
Click to show internal directories.
Click to hide internal directories.