When an exception is thrown, the code following it will not be executed, and PHP will try to find the matching "catch" block.
If an exception is not caught, a fatal error will be issued with an "Uncaught Exception" message.
Lets try to throw an exception without catching it:
< ?php |
The code above will get an error like this:
Fatal error: Uncaught exception 'Exception' |