PHP_SMART_HOME_V3/library/ErrorHandler.php

10 lines
271 B
PHP
Raw Normal View History

2020-04-25 07:37:55 +00:00
<?php
class ErrorHandler {
static function exception($exception){
error_log($exception);
header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);
2020-04-25 08:20:47 +00:00
echo '<h1>Oops!</h1><p>Something went wrong!</p>';
2020-04-25 07:37:55 +00:00
exit;
}
}