Included in the Vulnero sample application is an ErrorController which through the Zend_Controller_Plugin_ErrorHandler will catch exceptions thrown in your application and render a suitable error page within your WordPress theme catered to who's viewing it. For example, instead of coding your own error handling and display pages, you can trigger an error page by throwing an exception in your controller:
public function indexAction()
{
if (date('l') != 'Monday') {
throw new RuntimeException('Sorry, this page is only visible on Mondays');
}
}
Most users will simply be shown an error page with the message above; however, if you're logged in as an administrator with the manage_options role, the error pages because more robust and will show a code backtrace with line numbers to help you locate the problem.
