ErrorException
extends ErrorException
in package
ErrorException represents a PHP error.
For more details and usage information on ErrorException, see the guide article on handling errors.
Tags
Table of Contents
Constants
- E_HHVM_FATAL_ERROR = 16777217
- This constant represents a fatal error in the HHVM engine.
Methods
- __construct() : mixed
- Constructs the exception.
- getName() : string
- isFatalError() : bool
- Returns if error is one of fatal type.
- isXdebugStackAvailable() : bool
- Ensures that Xdebug stack trace is available based on Xdebug version.
Constants
E_HHVM_FATAL_ERROR
This constant represents a fatal error in the HHVM engine.
public
mixed
E_HHVM_FATAL_ERROR
= 16777217
PHP Zend runtime won't call the error handler on fatals, HHVM will, with an error code of 16777217 We will handle fatal error a bit different on HHVM.
Tags
Methods
__construct()
Constructs the exception.
public
__construct([string $message = '' ][, int $code = 0 ][, int $severity = 1 ][, string $filename = __FILE__ ][, int $lineno = __LINE__ ][, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string = ''
-
[optional]
- $code : int = 0
-
[optional]
- $severity : int = 1
-
[optional]
- $filename : string = __FILE__
-
[optional]
- $lineno : int = __LINE__
-
[optional]
- $previous : Throwable|null = null
-
[optional]
Tags
getName()
public
getName() : string
Return values
string —the user-friendly name of this exception
isFatalError()
Returns if error is one of fatal type.
public
static isFatalError(array<string|int, mixed> $error) : bool
Parameters
- $error : array<string|int, mixed>
-
error got from error_get_last()
Return values
bool —if error is one of fatal type
isXdebugStackAvailable()
Ensures that Xdebug stack trace is available based on Xdebug version.
private
isXdebugStackAvailable() : bool
Idea taken from developer bishopb at https://github.com/rollbar/rollbar-php