freshbooks-php-sdk

FreshBooksException extends Exception

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

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

getErrorDetails()

public getErrorDetails() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

        
On this page

Search results