ApiErrorException
extends Exception
in
Represents an error returned from the API.
Table of Contents
$responseBody | object | |
---|---|---|
__construct() | ApiErrorException Constructor. | mixed |
__toString() | __toString() magic method. | mixed |
setError() | Sets message and code properties. | mixed |
getResponseBody() | object | |
setResponseBody() | mixed |
Properties
$responseBody
private
object
$responseBody
Methods
__construct()
ApiErrorException Constructor.
public
__construct(
$response_body :
object
[, $message :
string
= "" ]
, $code :
int
[, $previous :
Exception
= null ]
)
: mixed
Parameters
- $response_body : object
- $message : string = ""
- $code : int
- $previous : Exception = null
Return values
mixed__toString()
__toString() magic method.
public
__toString(
)
: mixed
Return values
mixedsetError()
Sets message and code properties.
public
setError(
$response_body :
object
)
: mixed
Parameters
- $response_body : object
Return values
mixedgetResponseBody()
public
getResponseBody(
)
: object
Return values
objectsetResponseBody()
private
setResponseBody(
$response_body :
object
)
: mixed
Parameters
- $response_body : object