PostgrestErrorException
extends Exception
in package
Exception which parses and wraps a Throwable.
Is thrown when the request fails.
Table of Contents
Properties
- $postgrestErrorCode : string|null
- $postgrestErrorMessage : string|null
- $reasonPhrase : string|null
- $responseBody : string|null
- $statusCode : int|null
Methods
- __construct() : mixed
- Create a new PostgrestErrorException.
- __toString() : string
- String representation of the exception.
- getPostgrestErrorCode() : string|null
- Get the Postgrest error code.
- getPostgrestErrorMessage() : string|null
- Get the Postgrest error message.
- getReasonPhrase() : string|null
- Get the response reason phrase.
- getResponseBody() : string|null
- Get the unparsed response body.
- getStatusCode() : int|null
- Get the response status code.
Properties
$postgrestErrorCode
private
string|null
$postgrestErrorCode
$postgrestErrorMessage
private
string|null
$postgrestErrorMessage
$reasonPhrase
private
string|null
$reasonPhrase
$responseBody
private
string|null
$responseBody
$statusCode
private
int|null
$statusCode
Methods
__construct()
Create a new PostgrestErrorException.
public
__construct(Throwable $previous) : mixed
Parameters
- $previous : Throwable
-
The previous exception.
__toString()
String representation of the exception.
public
__toString() : string
Return values
string —String representation of the exception.
getPostgrestErrorCode()
Get the Postgrest error code.
public
getPostgrestErrorCode() : string|null
Return values
string|null —The Postgrest error code.
getPostgrestErrorMessage()
Get the Postgrest error message.
public
getPostgrestErrorMessage() : string|null
Return values
string|null —The Postgrest error message.
getReasonPhrase()
Get the response reason phrase.
public
getReasonPhrase() : string|null
Return values
string|null —The response reason phrase.
getResponseBody()
Get the unparsed response body.
public
getResponseBody() : string|null
Return values
string|null —The unparsed response body.
getStatusCode()
Get the response status code.
public
getStatusCode() : int|null
Return values
int|null —The response status code.