PDFGate's PHP SDK

ApiException extends PdfGateException
in package

Thrown when PDFGate returns a non-2xx HTTP response.

Table of Contents

Properties

$responseBody  : string
$statusCode  : int

Methods

__construct()  : mixed
getResponseBody()  : string
Returns the truncated response body from API.
getStatusCode()  : int
Returns the HTTP status code returned by API.

Properties

Methods

__construct()

public __construct(int $statusCode, string $responseBody) : mixed
Parameters
$statusCode : int

HTTP response status code.

$responseBody : string

Truncated response body.

getResponseBody()

Returns the truncated response body from API.

public getResponseBody() : string
Return values
string

getStatusCode()

Returns the HTTP status code returned by API.

public getStatusCode() : int
Return values
int

        
On this page

Search results