Documentation
¶
Index ¶
Constants ¶
View Source
const ( CodeUnknownError = 1 CodeUnknownSubcommand = 2 // Also happens to be used for flag.Parse errors, which is fitting CodeUnimplemented = 3 CodeBadParams = 4 CodeAuthFailure = 5 CodeTokenStoreFailure = 6 CodeReauthRequired = 7 )
Variables ¶
View Source
var UnexpectedHTML = errors.New("request to JSON API returned HTML unexpectedly")
Functions ¶
func ReauthRequired ¶
Types ¶
type CodedError ¶
CodedError wraps an error with an integer code that can be used as e.g. a return code from an application.
func (*CodedError) Error ¶
func (e *CodedError) Error() string
func (*CodedError) ExitCode ¶
func (e *CodedError) ExitCode() int
Click to show internal directories.
Click to hide internal directories.