Error Handler Progress

This commit is contained in:
JonatanRek
2020-04-25 10:21:52 +02:00
parent abff057943
commit 0f51826d3f
2 changed files with 9 additions and 10 deletions

View File

@@ -1,10 +0,0 @@
<?php
class ErrorHandler {
static function exception($exception){
error_log($exception);
header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);
echo '<h1>Oops!</h1><p>Something went wrong!</p>';
exit;
}
}