Don’t get me wrong, grunt (and his little cousin gulp) are great tool, with them it has been made possible to ease development and deployment of (nearly) every recent application, in just a matter of configuration copy-pasting and variable replacing, your project build setup is ready. In fact it’s so…

In this article we will see how to use exception subclasses in PHP.

RuntimeException

When an error occurred during the code execution.

A usual case scenario is when there’s a mistake during a database connection; we throw a runtime exception because the failure only occurs when we run the code :

Jules

Javascript developer - http://julesbou.net

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store