class FatalThrowableError in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/debug/Exception/FatalThrowableError.php \Symfony\Component\Debug\Exception\FatalThrowableError
Fatal Throwable Error.
@author Nicolas Grekas <p@tchwork.com>
Hierarchy
- class \Symfony\Component\Debug\Exception\FatalThrowableError extends \Symfony\Component\Debug\Exception\FatalErrorException
Expanded class hierarchy of FatalThrowableError
1 file declares its use of FatalThrowableError
- ErrorHandler.php in vendor/
symfony/ debug/ ErrorHandler.php
File
- vendor/
symfony/ debug/ Exception/ FatalThrowableError.php, line 19
Namespace
Symfony\Component\Debug\ExceptionView source
class FatalThrowableError extends FatalErrorException {
public function __construct(\Throwable $e) {
if ($e instanceof \ParseError) {
$message = 'Parse error: ' . $e
->getMessage();
$severity = E_PARSE;
}
elseif ($e instanceof \TypeError) {
$message = 'Type error: ' . $e
->getMessage();
$severity = E_RECOVERABLE_ERROR;
}
else {
$message = 'Fatal error: ' . $e
->getMessage();
$severity = E_ERROR;
}
\ErrorException::__construct($message, $e
->getCode(), $severity, $e
->getFile(), $e
->getLine());
$this
->setTrace($e
->getTrace());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FatalThrowableError:: |
public | function |