Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // InvalidTokenError means that the token used to call GetActivityDetails is invalid. Make sure you are retrieving this token correctly. InvalidTokenError = errors.New("invalid token") // TokenDecryptError means that the token could not be decrypted. Ensure you are using the correct .pem file. TokenDecryptError = errors.New("unable to decrypt token") // SharingFailureError means that the share between a user and an application was not successful. SharingFailureError = DetailedSharingFailureError{} )
View Source
var ( // DefaultHTTPErrorMessages maps HTTP error status codes to format strings // to create useful error messages. -1 is used to specify a default message // that can be used if an error code is not explicitly defined DefaultHTTPErrorMessages = map[int]string{ -1: defaultUnknownErrorMessageConst, } )
Functions ¶
This section is empty.
Types ¶
type DataObject ¶
type DataObject struct { Code string `json:"code"` Message string `json:"message"` Errors []ItemDataObject `json:"errors,omitempty"` }
DataObject maps from JSON error responses
type DetailedSharingFailureError ¶ added in v3.6.0
func (DetailedSharingFailureError) Error ¶ added in v3.6.0
func (d DetailedSharingFailureError) Error() string
type Error ¶
Error indicates errors related to the Yoti API.
func NewResponseError ¶
NewResponseError creates a new Error
type ItemDataObject ¶
ItemDataObject maps from JSON error items
type MultiError ¶
MultiError wraps one or more errors into a single error
func (MultiError) Error ¶
func (e MultiError) Error() string
Click to show internal directories.
Click to hide internal directories.