Documentation ¶
Index ¶
- type ContextError
- func (e *ContextError) AddSub(dict zdict.Dict, parts ...any)
- func (e ContextError) Error() string
- func (e *ContextError) GetLowerCaseMatchContent() string
- func (e ContextError) GetTitle() string
- func (e *ContextError) SetError(err error)
- func (e *ContextError) SetKeyValue(key string, value any)
- func (e ContextError) String() string
- func (ce *ContextError) UnmarshalJSON(data []byte) error
- func (e ContextError) Unwrap() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextError ¶
type ContextError struct { Title string `json:",omitempty"` SubContextError *ContextError `json:",omitempty"` WrappedError error `json:"-"` KeyValues zdict.Dict `json:",omitempty"` }
func ContextErrorFromError ¶
func ContextErrorFromError(err error) (ContextError, bool)
func MakeContextError ¶
func MakeContextError(dict zdict.Dict, parts ...any) ContextError
func (ContextError) Error ¶
func (e ContextError) Error() string
func (*ContextError) GetLowerCaseMatchContent ¶
func (e *ContextError) GetLowerCaseMatchContent() string
func (ContextError) GetTitle ¶
func (e ContextError) GetTitle() string
func (*ContextError) SetError ¶
func (e *ContextError) SetError(err error)
func (*ContextError) SetKeyValue ¶
func (e *ContextError) SetKeyValue(key string, value any)
func (ContextError) String ¶
func (e ContextError) String() string
func (*ContextError) UnmarshalJSON ¶
func (ce *ContextError) UnmarshalJSON(data []byte) error
func (ContextError) Unwrap ¶
func (e ContextError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.