\startmvc\coreException

Summary

Methods
Properties
Constants
init()
error()
exception()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
errorPage()
No private properties found
N/A

Methods

init()

init() : mixed

Returns

mixed —

error()

error(mixed  $errno, mixed  $errstr, mixed  $errfile, mixed  $errline) : mixed

错误处理方法

Parameters

mixed $errno
mixed $errstr
mixed $errfile
mixed $errline

Returns

mixed —

exception()

exception(\Throwable  $exception) : mixed

异常处理方法

Parameters

\Throwable $exception

Returns

mixed —

__construct()

__construct() : mixed

构造函数,注册错误处理和异常处理方法

Returns

mixed —

errorPage()

errorPage(mixed  $output) : mixed

显示友好的错误页面给用户(在生产环境中使用)

Parameters

mixed $output

Returns

mixed —