qpfsoft/error

QPF 错误处理器

v1.1.1 2019-06-14 00:59 UTC

This package is auto-updated.

Last update: 2024-09-14 13:31:45 UTC


README

QPF 错误处理器

开启错误处理

Error::register();

配置

调试模式

(bool) true|false

(int) 0|1|2

false|0 : 效果与false相同

1: 使用英文语言

true|2: 使用中文语言

if (debug == 2)

当debug的值为true时, int 2 转换为bool 就是true. 因此将使用中文语言

当debug的值为1时, 判断 1 == 2 结果为: false