WeatherApiException
extends InfrastructureException
in package
FinalYes
Table of Contents
Properties
- $errorCode : string
- $httpStatusCode : int
Methods
- __construct() : mixed
- airlyEmptyData() : self
- airlyFetchingFailed() : self
- imgwFetchingFailed() : self
- invalidApiKey() : 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
airlyEmptyData()
public
static airlyEmptyData() : self
Return values
selfairlyFetchingFailed()
public
static airlyFetchingFailed(Throwable $previous) : self
Parameters
- $previous : Throwable
Return values
selfimgwFetchingFailed()
public
static imgwFetchingFailed(Throwable $previous) : self
Parameters
- $previous : Throwable
Return values
selfinvalidApiKey()
public
static invalidApiKey() : self