Documentation ¶
Index ¶
- func Append(current error, next ...error) error
- func Embed(err error, data any) error
- func GetEmbeddedData[Data any](err error) (Data, bool)
- func Is(err error, code ErrorCode) bool
- func New(err error, code ErrorCode, text string) error
- func Newf(err error, code ErrorCode, format string, args ...any) error
- func Unwrap(err error) error
- func Wrap(err error, text string) error
- func Wrapf(err error, format string, args ...any) error
- type Codeable
- type DataContainer
- type DataContainingError
- type ErrorCode
- type Unwrappable
- type WrappingError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEmbeddedData ¶
Types ¶
type DataContainer ¶
type DataContainer interface { error GetEmbeddedData() interface{} }
type DataContainingError ¶
type DataContainingError struct { *WrappingError // contains filtered or unexported fields }
func (*DataContainingError) GetEmbeddedData ¶
func (d *DataContainingError) GetEmbeddedData() interface{}
type Unwrappable ¶
type WrappingError ¶
type WrappingError struct {
// contains filtered or unexported fields
}
func (*WrappingError) Error ¶
func (e *WrappingError) Error() string
func (*WrappingError) GetErrorCode ¶
func (e *WrappingError) GetErrorCode() ErrorCode
func (*WrappingError) Unwrap ¶
func (e *WrappingError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.