Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorCode ¶
ErrorCode returns the code if the given error is a store error and has a code assigned, otherwise returns an empty string
func FilterCode ¶
FilterCode turns unknown error codes to empty strings
Types ¶
type Code ¶
type Code string
Code represents an error code
const ( // ErrCanceled is thrown when a transaction is canceled ErrCanceled Code = "Canceled" // the request ErrUnauthorized Code = "Unauthorized" // ErrInvalidInput is thrown when the API user input is invalid ErrInvalidInput Code = "InvalidInput" // ErrWrongCreds is thrown when the API user provides wrong authentication // credentials ErrWrongCreds Code = "WrongCreds" )
Click to show internal directories.
Click to hide internal directories.