Documentation
¶
Overview ¶
Package apperror defines transport-independent application errors.
Index ¶
- type Detail
- type Error
- func (e *Error) Code() int
- func (e *Error) Details() []Detail
- func (e *Error) Error() string
- func (e *Error) Is(target error) bool
- func (e *Error) Kind() Kind
- func (e *Error) PublicMessage() string
- func (e *Error) Unwrap() error
- func (e *Error) WithCause(cause error) *Error
- func (e *Error) WithDetails(details ...Detail) *Error
- type Kind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func Resolve ¶
Resolve prioritizes cancellation, then the first typed application error in errors.As traversal order, including Join. Unknown causes remain private.
func (*Error) PublicMessage ¶
func (*Error) WithDetails ¶
Click to show internal directories.
Click to hide internal directories.