Documentation
¶
Index ¶
- func AsTag[T Tagger](err error) (T, bool)
- func HasTag[T Tagger](err error) bool
- func NewTagged[T Tagger, TP TaggerPtr[T]](cause string, opts ...Option) error
- func Tag[T Tagger, TP TaggerPtr[T]](cause error, opts ...Option) T
- type Coder
- type Conflict
- type ErrorTag
- type Forbidden
- type Internal
- type InvalidArgument
- type NotFound
- type Option
- type Tagger
- type TaggerPtr
- type Unauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InvalidArgument ¶
type InvalidArgument struct{ ErrorTag[codeBadRequest] }
type Unauthorized ¶
type Unauthorized struct{ ErrorTag[codeUnauthorized] }
Click to show internal directories.
Click to hide internal directories.