Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextualizeIfNeeded ¶
ContextualizeIfNeeded is a helper function to turn an error into a ContextualError if it is not already one
Types ¶
type ContextualError ¶
func NewContextualError ¶
func NewContextualError(msg string, fields map[string]interface{}, realError error) *ContextualError
func (*ContextualError) Error ¶
func (ce *ContextualError) Error() string
func (*ContextualError) Log ¶
func (ce *ContextualError) Log(lr *logrus.Logger)
func (*ContextualError) Unwrap ¶
func (ce *ContextualError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.