Documentation

ApiException extends Exception

ApiException Class Doc Comment

Tags
category

Class

author

Swagger Codegen team

link
https://github.com/swagger-api/swagger-codegen

Table of Contents

$responseBody  : mixed
The HTTP body of the server response either as Json or string.
$responseHeaders  : array<string|int, string>|null
The HTTP header of the server response.
$responseObject  : mixed
The deserialized response object
__construct()  : mixed
Constructor
getResponseBody()  : mixed
Gets the HTTP body of the server response either as Json or string
getResponseHeaders()  : array<string|int, string>|null
Gets the HTTP response header
getResponseObject()  : mixed
Gets the deseralized response object (during deserialization)
setResponseObject()  : void
Sets the deseralized response object (during deserialization)

Properties

$responseBody

The HTTP body of the server response either as Json or string.

protected mixed $responseBody

$responseHeaders

The HTTP header of the server response.

protected array<string|int, string>|null $responseHeaders

$responseObject

The deserialized response object

protected mixed $responseObject

Methods

__construct()

Constructor

public __construct([string $message = "" ], int $code[, array<string|int, string>|null $responseHeaders = [] ][, mixed $responseBody = null ]) : mixed
Parameters
$message : string = ""

Error message

$code : int

HTTP status code

$responseHeaders : array<string|int, string>|null = []

HTTP response header

$responseBody : mixed = null

HTTP decoded body of the server response either as \stdClass or string

Return values
mixed —

getResponseBody()

Gets the HTTP body of the server response either as Json or string

public getResponseBody() : mixed
Return values
mixed —

HTTP body of the server response either as \stdClass or string

getResponseHeaders()

Gets the HTTP response header

public getResponseHeaders() : array<string|int, string>|null
Return values
array<string|int, string>|null —

HTTP response header

getResponseObject()

Gets the deseralized response object (during deserialization)

public getResponseObject() : mixed
Return values
mixed —

the deserialized response object

setResponseObject()

Sets the deseralized response object (during deserialization)

public setResponseObject(mixed $obj) : void
Parameters
$obj : mixed

Deserialized response object

Return values
void —

Search results