Documentation
¶
Index ¶
- Constants
- func IsAPIError(err error) bool
- func IsAuthError(err error) bool
- func IsErrorType(err error, errorType string) bool
- func IsHTTPError(err error) bool
- func IsIOError(err error) bool
- func IsJSONError(err error) bool
- type Error
- func NewAPIError(data json.RawMessage) *Error
- func NewAuthError(message string, cause error) *Error
- func NewError(errorType, message string, cause error) *Error
- func NewHTTPError(cause error) *Error
- func NewIOError(cause error) *Error
- func NewInvalidMethodError(method string) *Error
- func NewJSONError(cause error) *Error
- func NewTokenStoreError(message string) *Error
Constants ¶
View Source
const ( ErrTypeHTTP = "HTTP Error" ErrTypeIO = "IO Error" ErrTypeInvalidMethod = "Invalid Method" ErrTypeAPI = "API Error" ErrTypeJSON = "JSON Error" ErrTypeAuth = "Auth Error" ErrTypeTokenStore = "Token Store Error" )
Variables ¶
This section is empty.
Functions ¶
func IsAPIError ¶
func IsAuthError ¶
func IsErrorType ¶
func IsHTTPError ¶
func IsJSONError ¶
Types ¶
type Error ¶
func NewAPIError ¶
func NewAPIError(data json.RawMessage) *Error
func NewAuthError ¶
func NewHTTPError ¶
func NewIOError ¶
func NewInvalidMethodError ¶
func NewJSONError ¶
func NewTokenStoreError ¶
Click to show internal directories.
Click to hide internal directories.