Class yii\base\ErrorException

Inheritanceyii\base\ErrorException » ErrorException
Available since version2.0
Source Code https://github.com/yiisoft/yii2/blob/master/framework/base/ErrorException.php

ErrorException represents a PHP error.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructs the exception. yii\base\ErrorException
getName() yii\base\ErrorException
isFatalError() Returns if error is one of fatal type. yii\base\ErrorException

Method Details

__construct() public method

Constructs the exception.

void __construct$message ''$code 0$severity 1$filename __FILE__$lineno __LINE__, \Exception $previous null )
$message

[optional]

$code

[optional]

$severity

[optional]

$filename

[optional]

$lineno

[optional]

$previous

[optional]

getName() public method

string getName( )
return string

The user-friendly name of this exception

isFatalError() public method

Returns if error is one of fatal type.

boolean isFatalError$error )
$error array

Error got from error_get_last()

return boolean

If error is one of fatal type