Documentation

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

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
mixed

setError()

Sets message and code properties.

public setError( $response_body : object ) : mixed
Parameters
$response_body : object
Return values
mixed

setResponseBody()

private setResponseBody( $response_body : object ) : mixed
Parameters
$response_body : object
Return values
mixed

Search results