ApiException
class ApiException extends Exception
ApiException Class Doc Comment
Properties
protected stdClass|string|null | $responseBody | The HTTP body of the server response either as Json or string. |
|
protected string[]|null | $responseHeaders | The HTTP header of the server response. |
|
protected stdClass|string|null | $responseObject | The deserialized response object |
Methods
__construct(string $message = "", int $code = 0, string[]|null $responseHeaders = [], stdClass|string|null $responseBody = null)
Constructor
string[]|null
getResponseHeaders()
Gets the HTTP response header
stdClass|string|null
getResponseBody()
Gets the HTTP body of the server response either as Json or string
void
setResponseObject(mixed $obj)
Sets the deserialized response object (during deserialization)
mixed
getResponseObject()
Gets the deserialized response object (during deserialization)
Details
at line 71
__construct(string $message = "", int $code = 0, string[]|null $responseHeaders = [], stdClass|string|null $responseBody = null)
Constructor
at line 83
string[]|null
getResponseHeaders()
Gets the HTTP response header
at line 93
stdClass|string|null
getResponseBody()
Gets the HTTP body of the server response either as Json or string
at line 105
void
setResponseObject(mixed $obj)
Sets the deserialized response object (during deserialization)
at line 115
mixed
getResponseObject()
Gets the deserialized response object (during deserialization)