\thinkError

Summary

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

Methods

register()

register() : void

注册异常处理

appException()

appException(\Exception|\Throwable  $e) 

Exception Handler

Parameters

\Exception|\Throwable $e

appError()

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

Error Handler

Parameters

integer $errno

错误编号

integer $errstr

详细错误信息

string $errfile

出错的文件

integer $errline

出错行号

array $errcontext

Throws

\think\exception\ErrorException

appShutdown()

appShutdown() 

Shutdown Handler

getExceptionHandler()

getExceptionHandler() : \think\exception\Handle

Get an instance of the exception handler.

Returns

\think\exception\Handle

isFatal()

isFatal(integer  $type) : boolean

确定错误类型是否致命

Parameters

integer $type

Returns

boolean