ConfigException
extends InfrastructureException
in package
FinalYes
Config exceptions
Table of Contents
Properties
- $errorCode : string
- $httpStatusCode : int
Methods
- __construct() : mixed
- loadingFailed() : self
- Thrown when unable to load config
- missingVariable() : self
- Thrown when a variable is not found in .env
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
loadingFailed()
Thrown when unable to load config
public
static loadingFailed(Throwable $previous) : self
Parameters
- $previous : Throwable
Return values
selfmissingVariable()
Thrown when a variable is not found in .env
public
static missingVariable(string $key) : self
Parameters
- $key : string