getMessage() . "' occurred in '" . $ex->getFile() . "' on line " . $ex->getLine() . ". Stack trace:" . $ex->getTraceAsString(); $htmlBody = "

" . htmlspecialchars($textBody). "

"; gridmail('exception-email', 'Exception Emailer', 'exception-emailer@takingitglobal.org', 'Developer', 'cristianr@takingitglobal.org', $subject, $textBody, $htmlBody); } /** * Informs the user that the exception has occurred */ private static function respondToUser() { http_response_code(500); die('Sorry. An error has occured. Please try again later. Our developers have been notified.'); } }