HumHub Documentation (unofficial)

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
author

Alexander Makarov sam@rmcreative.ru

since
2.0

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

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
link
https://www.php.net/manual/en/errorexception.construct.php

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

Return values
bool

        
On this page

Search results