FreshBooksException
extends Exception
in package
FinalYes
Exception thrown when the FreshBooks API returns an error.
Table of Contents
Properties
- $errorCode : int|null
- $errorDetails : array<string|int, mixed>|null
- $rawResponse : string|null
Methods
- __construct() : mixed
- getErrorCode() : int|null
- getErrorDetails() : array<string|int, mixed>|null
- getRawResponse() : string|null
Properties
$errorCode
public
int|null
$errorCode
$errorDetails
public
array<string|int, mixed>|null
$errorDetails
$rawResponse
public
string|null
$rawResponse
Methods
__construct()
public
__construct(string $message, int $statusCode[, Throwable|null $previous = null ][, string|null $rawResponse = null ][, int|null $errorCode = null ][, array<string|int, mixed>|null $errorDetails = null ]) : mixed
Parameters
- $message : string
- $statusCode : int
- $previous : Throwable|null = null
- $rawResponse : string|null = null
- $errorCode : int|null = null
- $errorDetails : array<string|int, mixed>|null = null
getErrorCode()
public
getErrorCode() : int|null
Return values
int|nullgetErrorDetails()
public
getErrorDetails() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetRawResponse()
public
getRawResponse() : string|null