/** * Framework exception handler * @param exception $e : exception object */ public static function exception_handler($e) { try { try { BF::load_module("BF_error"); } catch (exception $e) { die("FATAL ERROR: Failed loading error repporting module BF_error"); } $error = new BF_error($e); $error->display(BF::$error_output_callback); } catch (exception $new_e) { print 'Fatal Error. Second exception occured while handling exception.'; } }