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 $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

getErrorDetails()

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

        
On this page

Search results