Documentation ¶
Index ¶
- func IsErrX(e error) (ok bool)
- type ErrX
- func (self *ErrX) Apply(options ...Option) *ErrX
- func (self *ErrX) As(target any) bool
- func (self *ErrX) CopyErrors() (errs []error)
- func (self *ErrX) Equals(other *ErrX) bool
- func (self *ErrX) Error() string
- func (self *ErrX) Is(e error) bool
- func (self *ErrX) IsNil() bool
- func (self *ErrX) MarshalErrors() (msgs []json.RawMessage)
- func (self ErrX) MarshalJSON() ([]byte, error)
- func (self *ErrX) Size() int
- func (self *ErrX) WithCaller(skips ...int) *ErrX
- func (self *ErrX) WithCode(str string) *ErrX
- func (self *ErrX) WithDefault(kind, code string, msg string, args ...any) *ErrX
- func (self *ErrX) WithErrorf(str string, args ...any) *ErrX
- func (self *ErrX) WithErrors(errs ...error) *ErrX
- func (self *ErrX) WithKind(str string) *ErrX
- func (self *ErrX) WithMsg(str string, args ...any) *ErrX
- type Error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrX ¶
type ErrX struct { // fields for identification and api response Kind string Code string Msg string // optinal tracer Caller string // fn::file::line // contains filtered or unexported fields }
func (*ErrX) MarshalErrors ¶
func (self *ErrX) MarshalErrors() (msgs []json.RawMessage)
func (ErrX) MarshalJSON ¶
func (*ErrX) WithCaller ¶
func (*ErrX) WithDefault ¶
func (*ErrX) WithErrors ¶
Click to show internal directories.
Click to hide internal directories.