Documentation ¶
Overview ¶
Package errorshlp contains Newity functions for errors
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapWithDetails ¶
func WrapWithDetails(err error, errType ErrType, componentName ComponentName) error
WrapWithDetails wraps error with details
Types ¶
type DetailsError ¶
type DetailsError struct { Type ErrType Component ComponentName // contains filtered or unexported fields }
DetailsError types
func ExtractDetailsError ¶
func ExtractDetailsError(err error) (*DetailsError, bool)
ExtractDetailsError extracts DetailsError from error
func (*DetailsError) Cause ¶
func (de *DetailsError) Cause() error
Cause returns the underlying error
func (*DetailsError) Format ¶
func (de *DetailsError) Format(s fmt.State, verb rune)
Format formats the error
func (*DetailsError) Unwrap ¶
func (de *DetailsError) Unwrap() error
Unwrap returns the underlying error
Click to show internal directories.
Click to hide internal directories.