Skip to content
Permalink
Browse files

Adding basic configuration for Error and Exception handling.

  • Loading branch information...
markstory committed Nov 15, 2010
1 parent a8ba73d commit 561fe7b91f79d6870a9b0558d27e109db0ea986f
Showing with 19 additions and 0 deletions.
  1. +19 −0 app/config/core.php
@@ -50,6 +50,25 @@
*/
Configure::write('log', true);
/**
* Configure the Error handler used to handle errors for your application. By default
* ErrorHandler::handleError() is used. It will display errors using Debugger, when debug > 0
* and log errors with CakeLog when debug = 0. You can set it to any static method that is built to handle
* errors.
*/
Configure::write('Error', array(
'handler' => 'ErrorHandler::handleError',
));
/**
* Configure the default Exception handler. This method will be invoked each time there is an uncaught exception
* by default, ErrorHandler::handleException() is used. It will display a HTML page for the exception, and
* while debug > 0, framework errors like Missing Controller will be displayed.
*/
Configure::write('Exception', array(
'handler' => 'ErrorHandler::handleException'
));
/**
* Application wide charset encoding
*/

0 comments on commit 561fe7b

Please sign in to comment.
You can’t perform that action at this time.