BitPayException
extends Exception
in package
Generic exception.
Tags
Table of Contents
Properties
- $apiCode : string|null
- $bitPayCode : string
- $bitPayMessage : string
Methods
- __construct() : mixed
- Construct the BitPayException.
- getApiCode() : string
Properties
$apiCode
protected
string|null
$apiCode
$bitPayCode
private
string
$bitPayCode
= "BITPAY-GENERIC"
$bitPayMessage
private
string
$bitPayMessage
= "Unexpected Bitpay exeption."
Methods
__construct()
Construct the BitPayException.
public
__construct([string $message = "" ][, int $code = 100 ][, Exception $previous = null ][, string|null $apiCode = null ]) : mixed
Parameters
- $message : string = ""
-
[optional] The Exception message to throw.
- $code : int = 100
-
[optional] The Exception code to throw.
- $previous : Exception = null
- $apiCode : string|null = null
-
[optional] The API Exception code to throw.
getApiCode()
public
getApiCode() : string
Return values
string —Error code provided by the BitPay REST API