Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextualError ¶
type ContextualError struct { Context ErrorContext Msg string }
func Error ¶
func Error(msg string) ContextualError
func (ContextualError) Error ¶
func (c ContextualError) Error() string
func (ContextualError) Fields ¶
func (c ContextualError) Fields() map[string]any
func (ContextualError) String ¶
func (c ContextualError) String() string
func (ContextualError) Unwrap ¶
func (c ContextualError) Unwrap() error
type ErrorContext ¶
func Field ¶
func Field(key string, value any) *ErrorContext
func Fields ¶
func Fields(fields F) *ErrorContext
func Wrap ¶
func Wrap(err error) *ErrorContext
func (ErrorContext) Clone ¶
func (e ErrorContext) Clone() ErrorContext
func (ErrorContext) Error ¶
func (e ErrorContext) Error(msg string) ContextualError
func (*ErrorContext) Field ¶
func (e *ErrorContext) Field(key string, value any) *ErrorContext
func (*ErrorContext) Fields ¶
func (e *ErrorContext) Fields(fields F) *ErrorContext
func (*ErrorContext) Wrap ¶
func (e *ErrorContext) Wrap(err error) *ErrorContext
Click to show internal directories.
Click to hide internal directories.