Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ErrorMessage ¶
ErrorMessage unwraps an Error and returns its message. Non Error types always return 'internal error'.
Types ¶
type Code ¶
type Code struct {
// contains filtered or unexported fields
}
Code represents different types of errors that can arise in applications.
func CodeFromString ¶
CodeFromString parses a Code from the given string. If no code exists for the string 'Internal' is returned.
Click to show internal directories.
Click to hide internal directories.