search

Home  >  Q&A  >  body text

php - Asking for advice on TP5 exception handling source code issues

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中文网2794 days ago1088

reply all(1)I'll reply

  • 某草草

    某草草2017-05-24 11:36:35

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

    reply
    0
  • Cancelreply