streaming-website/lib/Exceptions.php
2016-12-11 20:37:54 +01:00

13 lines
369 B
PHP

<?php
function exception_error_handler($errno, $errstr, $errfile, $errline ) {
if (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 {}
class ConfigException extends Exception {}