static void crash(
string
$message, string
$file, string
$line, array
$trace, [
$status = 0]
)
|
|
错误信息处理方法
Parameters:
string |
$message: |
|
string |
$file: |
|
string |
$line: |
|
array |
$trace: |
|
|
$status: |
|
API Tags:
static void errorHandle(
string
$errno, string
$errstr, string
$errfile, string
$errline
)
|
|
错误处理句柄
Parameters:
string |
$errno: |
|
string |
$errstr: |
|
string |
$errfile: |
|
string |
$errline: |
|
API Tags:
static void exceptionHandle(
Exception
$exception
)
|
|
异常处理句柄
Parameters:
API Tags:
static string getErrorName(
int
$errorNumber
)
|
|
错误代码和错误信息映射方法,接受一个错误代码返回相对应错误代码的错误名称
Parameters:
int |
$errorNumber: |
错误代码 必填 |
API Tags:
static void triggerError(
string
$message, string
$template, WindHttpResponse
$response, int
$status
)
|
|
以静态错误页面终结请求
Parameters:
API Tags: