\think\initializerError

错误和异常处理

Summary

Methods
Properties
Constants
init()
appException()
appError()
appShutdown()
No public properties found
No constants found
isFatal()
getExceptionHandler()
$app
N/A
No private methods found
No private properties found
N/A

Properties

Methods

init()

init(\think\App  $app) : void

注册异常处理

Parameters

\think\App $app

appException()

appException(\Throwable  $e) 

Exception Handler

Parameters

\Throwable $e

appError()

appError(integer  $errno, string  $errstr, string  $errfile = '', integer  $errline) 

Error Handler

Parameters

integer $errno

错误编号

string $errstr

详细错误信息

string $errfile

出错的文件

integer $errline

出错行号

Throws

\think\exception\ErrorException

appShutdown()

appShutdown() 

Shutdown Handler

isFatal()

isFatal(integer  $type) : boolean

确定错误类型是否致命

Parameters

integer $type

Returns

boolean

getExceptionHandler()

getExceptionHandler() : \think\exception\Handle

Get an instance of the exception handler.

Returns

\think\exception\Handle