DoDomuDojade Documentation

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

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
self

missingVariable()

Thrown when a variable is not found in .env

public static missingVariable(string $key) : self
Parameters
$key : string
Return values
self

        
On this page

Search results