Documentation ¶
Index ¶
- type ErrorChain
- func (ec *ErrorChain) As(target any) bool
- func (ec *ErrorChain) CausedBy(err error) *ErrorChain
- func (ec *ErrorChain) Error() string
- func (ec *ErrorChain) ErrorContext() any
- func (ec *ErrorChain) Errors() []error
- func (ec *ErrorChain) Is(target error) bool
- func (ec *ErrorChain) MarshalJSON() ([]byte, error)
- func (ec *ErrorChain) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error
- func (ec *ErrorChain) String() string
- func (ec *ErrorChain) Unwrap() error
- func (ec *ErrorChain) WithErrorContext(context any) *ErrorChain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorChain ¶
type ErrorChain struct {
// contains filtered or unexported fields
}
func New ¶
func New(err error) *ErrorChain
func NewWithMessage ¶
func NewWithMessage(err error, message string) *ErrorChain
func NewWithMessagef ¶
func NewWithMessagef(err error, format string, a ...any) *ErrorChain
func (*ErrorChain) As ¶
func (ec *ErrorChain) As(target any) bool
func (*ErrorChain) CausedBy ¶
func (ec *ErrorChain) CausedBy(err error) *ErrorChain
func (*ErrorChain) Error ¶
func (ec *ErrorChain) Error() string
func (*ErrorChain) ErrorContext ¶
func (ec *ErrorChain) ErrorContext() any
func (*ErrorChain) Errors ¶
func (ec *ErrorChain) Errors() []error
func (*ErrorChain) Is ¶
func (ec *ErrorChain) Is(target error) bool
func (*ErrorChain) MarshalJSON ¶
func (ec *ErrorChain) MarshalJSON() ([]byte, error)
func (*ErrorChain) MarshalXML ¶
func (ec *ErrorChain) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error
func (*ErrorChain) String ¶
func (ec *ErrorChain) String() string
func (*ErrorChain) Unwrap ¶
func (ec *ErrorChain) Unwrap() error
func (*ErrorChain) WithErrorContext ¶
func (ec *ErrorChain) WithErrorContext(context any) *ErrorChain
Click to show internal directories.
Click to hide internal directories.