WordApiException
extends InfrastructureException
in package
FinalYes
Table of Contents
Properties
- $errorCode : string
- $httpStatusCode : int
Methods
- __construct() : mixed
- fetchingFailed() : self
- invalidResponse() : self
Properties
$errorCode read-only
public
string
$errorCode
= "INFRASTRUCTURE_ERROR"
$httpStatusCode read-only
public
int
$httpStatusCode
= 500
Methods
__construct()
public
__construct(string $message[, string $errorCode = "INFRASTRUCTURE_ERROR" ][, int $httpStatusCode = 500 ][, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string
- $errorCode : string = "INFRASTRUCTURE_ERROR"
- $httpStatusCode : int = 500
- $previous : Throwable|null = null
fetchingFailed()
public
static fetchingFailed(Throwable $previous) : self
Parameters
- $previous : Throwable
Return values
selfinvalidResponse()
public
static invalidResponse() : self