Documentation
¶
Index ¶
Constants ¶
View Source
const ( UnknownError = iota InternalError ExternalError NetworkError DatabaseError ApplicationError OtherError )
Declaration of error type enumeration.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error represents an error.
func NewError ¶
NewError constructs a new error with a specific error code and description. Automatically generates a stack trace at the point it was called.
func NewErrorWithCause ¶
NewErrorWithCause constructs a new error with a specific error code,description and an external error reference. Automatically generates a stack trace at the point it was called.
Click to show internal directories.
Click to hide internal directories.