InfluxDB PHP Client
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
InfluxDB2\ApiException Class Reference
Inheritance diagram for InfluxDB2\ApiException:

Public Member Functions

 __construct ($message="", $code=0, $responseHeaders=[], $responseBody=null, $previous=null)
 
 getResponseHeaders ()
 
 getResponseBody ()
 
 setResponseObject ($obj)
 
 getResponseObject ()
 

Protected Attributes

 $responseBody
 
 $responseHeaders
 
 $responseObject
 

Constructor & Destructor Documentation

◆ __construct()

InfluxDB2\ApiException::__construct ( $message = "",
$code = 0,
$responseHeaders = [],
$responseBody = null,
$previous = null )

Constructor

Parameters
ClientExceptionInterface | null$previousThe previous throwable used for the exception chaining.
string$messageError message
int$codeHTTP status code
string[] | null$responseHeadersHTTP response header
mixed$responseBodyHTTP decoded body of the server response either as \stdClass or string

Member Function Documentation

◆ getResponseBody()

InfluxDB2\ApiException::getResponseBody ( )

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

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

◆ getResponseHeaders()

InfluxDB2\ApiException::getResponseHeaders ( )

Gets the HTTP response header

Returns
string[]|null HTTP response header

◆ getResponseObject()

InfluxDB2\ApiException::getResponseObject ( )

Gets the deseralized response object (during deserialization)

Returns
mixed the deserialized response object

◆ setResponseObject()

InfluxDB2\ApiException::setResponseObject ( $obj)

Sets the deseralized response object (during deserialization)

Parameters
mixed$objDeserialized response object
Returns
void

Member Data Documentation

◆ $responseObject

InfluxDB2\ApiException::$responseObject
protected

The deserialized response object


The documentation for this class was generated from the following file: