The PHP Exception class for the system?

Asked

Viewed 97 times

0

One question that came to me just now is "The PHP Exception class for the system?", what I mean is, when we release an exception in the script, something after this exception remains in operation?

  • Sorry, but doubt was not clear

  • What I mean is, I need to use the die() after launching an exception to kill the system? or is it not necessary?

2 answers

5


Hello!

According to the documentation nay:

When an exception is triggered, code soon after the instruction will not be executed, and PHP will try to find the first catch block except fired. If an exception is not caught, a PHP Fatal Error will be released with a message "Uncaught Exception ...", unless a handler has been set with set_exception_handler().

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.