Versions in this module Expand all Collapse all v0 v0.0.3 Feb 4, 2021 v0.0.2 Feb 3, 2021 Changes in this version + func Cause(err error) error + func Errorf(format string, args ...interface{}) error + func New(message string) error + func NewWithCode(err error, code ErrorCode, msg string) error + func NewWithPayload(err error, code ErrorCode, payload interface{}, msg string) error + func Wrap(err error, message string) error + func Wrapf(err error, format string, args ...interface{}) error + type ErrorCode int + var BodyEmpty ErrorCode = 101 + var Default ErrorCode = 1 + var InvalidParameter ErrorCode = 2 + var JSONIsEmpty ErrorCode = 100 + var URLRedirected ErrorCode = 102 + func Code(err error) ErrorCode + func CodeWithPayload(err error) (ErrorCode, interface{}) + type ErrorPayload interface + type Frame uintptr + func (f Frame) Format(s fmt.State, verb rune) + type StackTrace []Frame + func (st StackTrace) Format(s fmt.State, verb rune)