function openclerk_exceptions_exception_handler($e) { header('HTTP/1.0 500 Internal Server Error'); // TODO // if (function_exists('my_content_type_exception_handler')) { // my_content_type_exception_handler($e); // } else { echo "Error: " . htmlspecialchars($e->getMessage()); if (!Config::isEmpty() && Config::get('display_errors', false)) { // only display trace locally echo "<br>Trace:"; print_exception_trace($e); } // } // logging log_uncaught_exception($e); die; }