Error Handler for Cake console. Does simple printing of the exception that occurred and the stack trace of the error.
_stop( integer $code 0 )
Wrapper for exit(), used for testing.
$code
optional 0 getStderr( )
Get the stderr object for the console error handling.
ConsoleOutput
handleError( integer $code , string $description , string $file null , integer $line null , array $context null )
Handle errors in the console environment. Writes errors to stderr, and logs messages if Configure::read('debug') is 0.
$code
$description
$file
optional null $line
optional null $context
optional null handleException( Exception $exception )
Handle an exception in the console environment. Prints a message to stderr.
$exception
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/2.7/class-ConsoleErrorHandler.html