Register the exception handler.
ExceptionHandler The registered exception handler
public static function register($debug = true) {
$handler = new static($debug);
set_exception_handler(array(
$handler,
'handle',
));
return $handler;
}