From c1dcd4f20e3e0e89d7e2dce051526d2db36f9579 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 28 Nov 2023 15:36:28 +0300 Subject: Capture, log and handle generic exceptions Handle any and all unforeseen error conditions gracefully by capturing the exceptions, logging out for debug purposes and providing the user with a generic error page. --- qc_app/templates/unhandled_exception.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 qc_app/templates/unhandled_exception.html (limited to 'qc_app/templates') diff --git a/qc_app/templates/unhandled_exception.html b/qc_app/templates/unhandled_exception.html new file mode 100644 index 0000000..6e6a051 --- /dev/null +++ b/qc_app/templates/unhandled_exception.html @@ -0,0 +1,21 @@ +{%extends "base.html"%} + +{%block title%}System Error{%endblock%} + +{%block css%} + +{%endblock%} + +{%block contents%} +
+ An error has occured, and your request has been aborted. Please notify the + administrator to try and get this sorted. +
+
+ Provide the following information to help the administrator figure out and fix
+ the issue:
+