\thinkError

Summary

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

Properties

$exceptionHandler

$exceptionHandler : array

配置参数

Type

array

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) 

Error Handler

Parameters

integer $errno

错误编号

integer $errstr

详细错误信息

string $errfile

出错的文件

integer $errline

出错行号

Throws

\think\exception\ErrorException

appShutdown()

appShutdown() 

Shutdown Handler

setExceptionHandler()

setExceptionHandler(mixed  $handle) : void

设置异常处理类

Parameters

mixed $handle

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