Documentation ¶
Index ¶
- func And(err1, err2 error) error
- func As(err error, target interface{}) bool
- func Is(err, target error) bool
- func New(reason string) error
- func Newf(format string, args ...interface{}) error
- func Wrap(err error, reason string) error
- func Wrapf(err error, format string, args ...interface{}) error
- type Chain
- type Const
- type CustomError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chain ¶
type Chain []error
Chain - цепочка ошибок
type Const ¶
type Const string
Const тип используемый для константных ошибок, позволяет избегать возможных мутаций значений ошибок.
type CustomError ¶
type CustomError interface { Just(err error) error New(reason string) error Newf(format string, args ...interface{}) error Wrap(err error, reason string) error Wrapf(err error, format string, args ...interface{}) error With(fields ...fields.Field) CustomError fields.FieldContainer }
func Builder ¶
func Builder(fields ...fields.Field) CustomError
Click to show internal directories.
Click to hide internal directories.