From 79016fed87046374e9b799c7526eb8b8924f87f1 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Sat, 25 Apr 2020 09:37:55 +0200 Subject: [PATCH] Error handler --- library/ErrorHandler.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 library/ErrorHandler.php diff --git a/library/ErrorHandler.php b/library/ErrorHandler.php new file mode 100644 index 0000000..a7145f8 --- /dev/null +++ b/library/ErrorHandler.php @@ -0,0 +1,21 @@ + + + Error! + + + + +

Oops!

+

Something went wrong!

+ + '; + exit; + } +} +set_exception_handler('ErrorHandler::exception'); + \ No newline at end of file