\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) : mixed

Exception Handler

Parameters

\Exception|\Throwable $e

Returns

mixed —

appError()

appError(int  $errno, int  $errstr, string  $errfile = '', int  $errline) : mixed

Error Handler

Parameters

int $errno

错误编号

int $errstr

详细错误信息

string $errfile

出错的文件

int $errline

出错行号

Throws

\think\exception\ErrorException

Returns

mixed —

appShutdown()

appShutdown() : mixed

Shutdown Handler

Returns

mixed —

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(int  $type) : bool

确定错误类型是否致命

Parameters

int $type

Returns

bool —