Ally's PetStore API

ApiException extends Exception
in package

ApiException Class Doc Comment

Tags
category

Class

author

OpenAPI Generator team

link
https://openapi-generator.tech

Table of Contents

$responseBody  : stdClass|string|null
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  : stdClass|string|null
The deserialized response object
__construct()  : mixed
Constructor
getResponseBody()  : stdClass|string|null
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 deserialized response object (during deserialization)
setResponseObject()  : void
Sets the deserialized response object (during deserialization)

Properties

$responseBody

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

protected stdClass|string|null $responseBody
Tags

$responseHeaders

The HTTP header of the server response.

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

$responseObject

The deserialized response object

protected stdClass|string|null $responseObject
Tags

Methods

__construct()

Constructor

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

Error message

$code : int = 0

HTTP status code

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

HTTP response header

$responseBody : stdClass|string|null = null

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

Tags
Return values
mixed

getResponseBody()

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

public getResponseBody() : stdClass|string|null
Tags
Return values
stdClass|string|null

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

getResponseHeaders()

Gets the HTTP response header

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

HTTP response header

getResponseObject()

Gets the deserialized response object (during deserialization)

public getResponseObject() : mixed
Tags
Return values
mixed

the deserialized response object

setResponseObject()

Sets the deserialized response object (during deserialization)

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

Deserialized response object

Tags
Return values
void

        

Search results