mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 14:44:21 +00:00
12 lines
335 B
PHP
12 lines
335 B
PHP
<?php
|
|
|
|
function exception_error_handler($errno, $errstr, $errfile, $errline ) {
|
|
if (ini_get('error_reporting') == 0)
|
|
return;
|
|
|
|
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
|
|
}
|
|
set_error_handler("exception_error_handler");
|
|
|
|
class NotFoundException extends Exception {}
|
|
class ScheduleException extends Exception {}
|