Error Handling Overview

Let’s face it: sometimes things go wrong. It is important to intercept errors and respond to them appropriately. A Yee application provides helper methods to respond to errors and exceptions.

Important Notes

  • A Yee application respects your existing error_reporting setting;
  • A Yee application only handles errors and exceptions generated inside the Yee application;
  • A Yee application converts errors into ErrorException objects and throws them;
  • A Yee application uses its built-in error handler if its debug setting is true; otherwise, it uses the custom error handler.