Let’s face it: sometimes things go wrong. It is important to intercept errors and respond to them appropriately. A Slim application provides helper methods to respond to errors and exceptions.
error_reporting
setting;ErrorException
objects and throws them;debug
setting is true; otherwise, it uses the custom error handler.