Documentation ¶
Index ¶
- Variables
- func Cause(err error) error
- func Code(err error) int
- func New(msg string) error
- func NewMultiError(errs ...error) error
- func NewWithCode(msg string, code string) error
- func NewWithError(err error) error
- func UnWrap(err error) error
- func WrapMessage(err error, msg string) error
- func WrapMessageWithCode(err error, msg string, code string) error
- type BasicError
- type MultiError
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSeparator string = "\n"
Functions ¶
func NewMultiError ¶
func NewWithCode ¶
func NewWithError ¶
func WrapMessage ¶
Types ¶
type BasicError ¶ added in v1.2.23
type BasicError struct {
// contains filtered or unexported fields
}
func (*BasicError) Cause ¶ added in v1.2.23
func (e *BasicError) Cause() error
func (*BasicError) Code ¶ added in v1.2.23
func (e *BasicError) Code() interface{}
func (*BasicError) Error ¶ added in v1.2.23
func (e *BasicError) Error() string
func (*BasicError) String ¶ added in v1.2.23
func (e *BasicError) String() string
type MultiError ¶ added in v1.2.4
type MultiError interface { error AddErrors(errs ...error) MultiError IsNil() bool Err() error }
func DefaultMultiError ¶ added in v1.2.4
func DefaultMultiError() MultiError
Click to show internal directories.
Click to hide internal directories.