\Simplify_BadRequestException

Exception raised when the API request contains errors.

Summary

Methods
Properties
Constants
hasFieldErrors()
getFieldErrors()
describe()
getErrorData()
getStatus()
getReference()
getErrorCode()
No public properties found
No constants found
No protected methods found
$fieldErrors
$errorData
$status
$errorCode
$reference
N/A
No private methods found
No private properties found
N/A

Properties

$fieldErrors

$fieldErrors

$errorData

$errorData

$status

$status

$errorCode

$errorCode

$reference

$reference

Methods

hasFieldErrors()

hasFieldErrors() : boolean

Returns a boolean indicating whether there are any field errors.

Returns

boolean —

true if there are field errors; false otherwise.

getFieldErrors()

getFieldErrors() : array

Returns a list containing all field errors.

Returns

array —

list of field errors.

describe()

describe() : string

Returns a description of the error.

Returns

string —

Description of the error.

getErrorData()

getErrorData() : array

Returns a map of all error data returned by the API.

Returns

array —

a map containing API error data.

getStatus()

getStatus() : string

Returns the HTTP status for the request.

Returns

string —

HTTP status code (or null if there is no status).

getReference()

getReference() : string

Returns unique reference for the API error.

Returns

string —

a reference (or null if there is no reference).

getErrorCode()

getErrorCode() : string

Returns an code for the API error.

Returns

string —

the error code.