Documentation
¶
Overview ¶
Package apiutils has the types required for Error handling
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct { ResponseCode int //The HTTP response code from the API request Reason string //The reason for throwing exception Response []byte }
APIError structure for custom error handling in API invocation
func NewAPIError ¶
NewAPIError implements initialization constructor Returns new APIException object
Click to show internal directories.
Click to hide internal directories.