Documentation ¶
Index ¶
- type WrapError
- func (e *WrapError) As(target interface{}) bool
- func (e *WrapError) Child() error
- func (e *WrapError) Current() error
- func (e *WrapError) Error() string
- func (e *WrapError) Flatten() []error
- func (e *WrapError) Is(target error) bool
- func (e *WrapError) Unwrap() error
- func (e *WrapError) Wrap(err error) *WrapError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WrapError ¶ added in v0.7.0
type WrapError struct {
// contains filtered or unexported fields
}
WrapError is custom error struct implemented error interface, supporting As, Is, Unwrap.
func FromError ¶ added in v0.7.0
FromError returns an error to WrapError, but if an error doesn't convert to WrapError, returning nil and false.
func (*WrapError) As ¶ added in v0.7.0
As Checks to equal e.child to err. It's implemented for errors package.
func (*WrapError) Error ¶ added in v0.7.0
Error returns a chained error string. It's implemented error interface.
func (*WrapError) Is ¶ added in v0.7.0
Is checks to equal e.current to err. It's implemented for errors package.
Click to show internal directories.
Click to hide internal directories.