Documentation
¶
Index ¶
- func Code(err error) codes.Code
- func IsHandledCode(code codes.Code) bool
- type Error
- func (e Error) Code() codes.Code
- func (e Error) Details() []string
- func (e Error) Error() string
- func (e Error) GRPCStatus() *status.Status
- func (e Error) IsHandled() bool
- func (e Error) Localize() string
- func (e Error) MarshalJSON() ([]byte, error)
- func (e Error) MarshalXML(encoder *xml.Encoder, start xml.StartElement) error
- func (e Error) MarshalYAML() (any, error)
- func (e Error) Message() string
- func (e Error) Model() *Model
- func (e Error) SetLocalize(localize string) *Error
- func (e Error) Slug() string
- func (e Error) StatusCode() int
- func (e Error) WithDetailF(format string, args ...any) *Error
- func (e Error) WithDetails(details ...string) *Error
- type Model
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsHandledCode ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (Error) GRPCStatus ¶
func (Error) MarshalJSON ¶
func (Error) MarshalXML ¶
func (Error) MarshalYAML ¶
func (Error) SetLocalize ¶
func (Error) StatusCode ¶
func (Error) WithDetails ¶
Click to show internal directories.
Click to hide internal directories.