Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error represents an error that could be wrapping another error, it includes a code for determining what triggered the error.
type ErrorCode ¶
type ErrorCode uint
ErrorCode defines supported error codes.
const ( // ErrorCodeUnknown represents an unknown error ErrorCodeUnknown ErrorCode = iota + 1 // ErrorCodeInvalidArgument represents an invalid argument error ErrorCodeInvalidArgument // ErrorMissingArgument represents an missing argument error ErrorMissingArgument )
Error codes is also used as exit code Must always start at 1
Click to show internal directories.
Click to hide internal directories.