package
2.0.7+incompatible
Repository: https://github.com/centrifuge/pod.git
Documentation: pkg.go.dev

# Functions

AppendError returns a new listError if errn == nil, return err if err is of type listError and if errn is of type listerror, append errn errors to err and return err.
GetErrs gets the list of errors if its a list.
GetHTTPDetails returns a http code and message default http code is 500.
IsOfType returns if the err is of type terr.
Len returns the total number of errors if err is listError, return len(listError.errs) if err == nil, return 0 else return 1.
Mask returns the mask for the error.
New returns a new error with message passed.
NewHTTPError returns an HTTPError.
NewTypedError returns a new error of type typedError.
StackTrace returns the stack trace attached to the error if any.
WithStackTrace attaches stack trace to error.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrUnknown is an unknown error type.

# Variables

MaskErrs this is a compile time flag to indicate whether to mask errors that can leak private or sensitive information.

# Interfaces

TypedError can be implemented by any type error.

# Type aliases

Error is a string that implements error this will have interesting side effects of having constant errors.