ApiException

Extends \Dotpay\Exception\DotpayException

An error by using the Dotpay API.

package

Default

Methods

Initialize Dotpay SDK exception.

__construct(string $message = '', integer $code, \Exception $previous = null) 
inherited

Arguments

$message

string

Details of exception

$code

integer

Code of exception

$previous

\Exception

The previous exception used for the exception chaining

Get an error code.

getApiCode() : string

Response

string

Set an error code.

setApiCode(string $code) : \Dotpay\Exception\Resource\ApiException

Arguments

$code

string

Error code

Response

\Dotpay\Exception\Resource\ApiException

Constants

Message of error thrown by the exception.

MESSAGE
inherited

Properties

Error code

apiCode : string
var

Error code

Type(s)

string

Translator for translating message of exceptions

translator : \Dotpay\Exception\Dotpay\locale\Translator
inherited static
var

Translator for translating message of exceptions

Type(s)

\Dotpay\Exception\Dotpay\locale\Translator