Documentation
¶
Index ¶
- func FormatError(f Formatter, s fmt.State, verb rune)
- func NewBuilder(options ...func(*builder)) *builder
- func NewHTTPError(statusCode int, code string, description string) error
- func Unwrap(err error) error
- func WithAttributes(attrs map[string]any) func(*builder)
- func WithErrorsCodesMapping(mapping map[int]string) func(*builder)
- func WithStack() func(*builder)
- func Wrap(err error, message string) error
- func Wrapf(err error, format string, a ...interface{}) error
- type Formatter
- type Frame
- type HTTPError
- type Printer
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func NewBuilder(options ...func(*builder)) *builder
func WithAttributes ¶
func WithErrorsCodesMapping ¶
Types ¶
type Printer ¶
type Printer interface {
// Print appends args to the message output.
Print(args ...interface{})
// Printf writes a formatted string.
Printf(format string, args ...interface{})
// Detail reports whether error detail is requested.
// After the first call to Detail, all text written to the Printer
// is formatted as additional detail, or ignored when
// detail has not been requested.
// If Detail returns false, the caller can avoid printing the detail at all.
Detail() bool
}
Click to show internal directories.
Click to hide internal directories.
Friendly and convenient library for working with errors in micro-services.