TwigException
extends InfrastructureException
in package
FinalYes
Table of Contents
Properties
- $errorCode : string
- $httpStatusCode : int
Methods
- __construct() : mixed
- initializationFailed() : self
- invalidViewsPath() : self
- renderingFailed() : self
- templateNotFound() : 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
initializationFailed()
public
static initializationFailed(string $viewsPath, Throwable $previous) : self
Parameters
- $viewsPath : string
- $previous : Throwable
Return values
selfinvalidViewsPath()
public
static invalidViewsPath(string $viewsPath) : self
Parameters
- $viewsPath : string
Return values
selfrenderingFailed()
public
static renderingFailed(string $template, Throwable $previous) : self
Parameters
- $template : string
- $previous : Throwable
Return values
selftemplateNotFound()
public
static templateNotFound(string $template) : self
Parameters
- $template : string