aboutsummaryrefslogtreecommitdiff
path: root/lib/Exceptions.php
blob: 83bd380816247364a6f79e791bb450f9b7437ba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?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 {}