streaming-website/lib/Exceptions.php

14 lines
369 B
PHP
Raw Normal View History

<?php
2015-03-27 13:21:34 +00:00
function exception_error_handler($errno, $errstr, $errfile, $errline ) {
if (error_reporting() == 0)
2015-03-27 13:21:34 +00:00
return;
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
}
set_error_handler("exception_error_handler");
class NotFoundException extends Exception {}
2015-03-30 19:18:42 +00:00
class ScheduleException extends Exception {}
class ConfigException extends Exception {}