Documentation ¶
Index ¶
- type CustomError
- func MakeError(err error) CustomError
- func MakeErrorf(format string, args ...interface{}) CustomError
- func MakeTypedError(errType ErrorType, err error) CustomError
- func MakeTypedErrorf(errType ErrorType, format string, args ...interface{}) CustomError
- func NewTypedError(errType ErrorType, subError CustomError, err error) CustomError
- func NewTypedErrorf(errType ErrorType, subError CustomError, format string, args ...interface{}) CustomError
- func WrapError(subError CustomError, err error) CustomError
- func WrapErrorf(subError CustomError, format string, args ...interface{}) CustomError
- type ErrorBuilder
- type ErrorDetails
- type ErrorType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomError ¶
type CustomError interface { fmt.Stringer error Unwrap() error GetError() error GetSubError() CustomError GetDetails() ErrorDetails GetType() ErrorType }
func MakeError ¶
func MakeError(err error) CustomError
func MakeErrorf ¶
func MakeErrorf(format string, args ...interface{}) CustomError
func MakeTypedError ¶
func MakeTypedError(errType ErrorType, err error) CustomError
func MakeTypedErrorf ¶
func MakeTypedErrorf(errType ErrorType, format string, args ...interface{}) CustomError
func NewTypedError ¶
func NewTypedError(errType ErrorType, subError CustomError, err error) CustomError
func NewTypedErrorf ¶
func NewTypedErrorf(errType ErrorType, subError CustomError, format string, args ...interface{}) CustomError
func WrapError ¶
func WrapError(subError CustomError, err error) CustomError
func WrapErrorf ¶
func WrapErrorf(subError CustomError, format string, args ...interface{}) CustomError
type ErrorBuilder ¶
type ErrorBuilder interface { MakeErrorf(format string, args ...interface{}) CustomError WrapErrorf(subError CustomError, format string, args ...interface{}) CustomError }
func NewPrefixedErrorBuilder ¶
func NewPrefixedErrorBuilder(prefix string) ErrorBuilder
type ErrorDetails ¶
Click to show internal directories.
Click to hide internal directories.