LedgerException
extends BitPayException
in package
Generic ledger exception.
Tags
Table of Contents
Properties
- $apiCode : string|null
- $bitPayCode : string
- $bitPayMessage : string
Methods
- __construct() : mixed
- Construct the LedgerException.
- getApiCode() : string
Properties
$apiCode
protected
string|null
$apiCode
$bitPayCode
private
string
$bitPayCode
= "BITPAY-LEDGER-GENERIC"
$bitPayMessage
private
string
$bitPayMessage
= "An unexpected error occurred while trying to manage the ledger"
Methods
__construct()
Construct the LedgerException.
public
__construct([string $message = "" ][, int $code = 131 ][, Exception $previous = null ][, string|null $apiCode = "000000" ]) : mixed
Parameters
- $message : string = ""
-
[optional] The Exception message to throw.
- $code : int = 131
-
[optional] The Exception code to throw.
- $previous : Exception = null
- $apiCode : string|null = "000000"
-
[optional] The API Exception code to throw.
getApiCode()
public
getApiCode() : string
Return values
string —Error code provided by the BitPay REST API