Basic exception handling with PHP

An exception is an Error thrown by the application you are trying to execute. Exception handing is an object oriented approach

in the PHP Language.

An exception is an object thrown out by your application in the even when some things goes wrong. This gives you the freedom to interrupt  and customize that thrown object suiting your application, such as handling that error which occurred or deciding to halt the further execution  of the application. When an exception is thrown, it halts the processing of the code until it is caught or the let it handle that error. If an exception left unhandled, it stops for further execution of the application and that is the result of FATAL ERROR in PHP, which immediately stops the execution of the program.