php - Asking for advice on TP5 exception handling source code issues
PHP中文网
PHP中文网 2017-05-24 11:34:35
0
1
1077

In the TP5 source code Error.php file, there is the following code:

Is the mark in this code redundant? Aren’t the parameters accepted by the appException() function all objects based on the base class \Exception? Could you please tell me what kind of exception is not based on the base class \Exception?

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
某草草

If $e is written in the function declaration, it may be Exception or Throwable
http://www.php.net/manual/en/...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template