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 $previous = null ][, string $rawResponse = null ][, int $errorCode = null ][, array<string|int, mixed> $errorDetails = null ]) : mixed
Parameters
- $message : string
- $statusCode : int
- $previous : Throwable = null
- $rawResponse : string = null
- $errorCode : int = null
- $errorDetails : array<string|int, mixed> = 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