Documentation ¶
Index ¶
- Constants
- type Error
- func (f *Error) Code() int
- func (f *Error) CodeGRPC() codes.Code
- func (f *Error) CodeHTTP() int
- func (f *Error) Data() any
- func (f *Error) ErrGRPC() error
- func (f *Error) Error() string
- func (f *Error) Fields() []zap.Field
- func (f *Error) Unwrap() error
- func (f *Error) With(fields ...zap.Field) *Error
Constants ¶
View Source
const ( CodeBadRequest = iota CodeNotFound CodeInternal CodeConflict CodeForbidden CodeNoContent )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is custom error that is using in service to deliver error to controllers with prepared statuses and log fields.
Click to show internal directories.
Click to hide internal directories.