Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultErrorMessage = "unknown error"
Variables ¶
This section is empty.
Functions ¶
func GetOriginalError ¶
GetOriginalError returns original error. If err isn't an instance of 'fundamental' type, passed error will be returned
Types ¶
type Option ¶
type Option func(*fundamental)
func WithOriginalError ¶
func WithOriginalError() Option
WithOriginalError exposes original error for printing
func WithTypeIfNotSet ¶
WithTypeIfNotSet sets passed Error Type if current Error Type is UndefinedError
Click to show internal directories.
Click to hide internal directories.