yii\base\ErrorException - Yii2 类参考手册
Class yii\base\ErrorException
| Inheritance | yii\base\ErrorException » ErrorException |
|---|---|
| Available since version | 2.0 |
ErrorException represents a PHP error.
For more details and usage information on ErrorException, see the guide article on handling errors.
Public Methods
隐藏继承的方法 Hide inherited methods
| 方法 Method | 简介 Description | 定义在 Defined By |
|---|---|---|
| __construct() | Constructs the exception. | yii\base\ErrorException |
| getName() | yii\base\ErrorException | |
| isFatalError() | Returns if error is one of fatal type. | yii\base\ErrorException |
常量 Constants
隐藏继承的常量 Hide inherited constants
| 常量 Constant | 值 Value | 简介 Description | 定义在 Defined By |
|---|---|---|---|
| E_HHVM_FATAL_ERROR | 16777217 | This constant represents a fatal error in the HHVM engine. 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. | yii\base\ErrorException |
方法详情 Method Details
Constructs the exception.
| public 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] |
|
| public string getName ( ) | ||
| return | string | The user-friendly name of this exception |
|---|---|---|
Returns if error is one of fatal type.
| public static boolean isFatalError ( $error ) | ||
| $error | array | Error got from error_get_last() |
| return | boolean | If error is one of fatal type |
|---|---|---|