1 <?php
2
3 namespace Alo\Exception;
4
5 if (!defined('GEN_START')) {
6 http_response_code(404);
7 die();
8 }
9
10 /**
11 * Controller-related exceptions
12 *
13 * @author Art <a.molcanovas@gmail.com>
14 */
15 class ControllerException extends AbstractException {
16
17 /**
18 * Code when a default controller is not defined
19 *
20 * @var int
21 */
22 const E_DEFAULT_UNDEFINED = 100;
23
24 /**
25 * Code when the config file is not found
26 *
27 * @var int
28 */
29 const E_CONFIG_NOT_FOUND = 101;
30
31 /**
32 * Code when the error controller is not found
33 *
34 * @var int
35 */
36 const E_ERR_NOT_FOUND = 102;
37
38 /**
39 * Code when the routes array is malformed
40 *
41 * @var int
42 */
43 const E_MALFORMED_ROUTES = 103;
44
45 /**
46 * Code when there's no controller available and the error controller is
47 * not set/invalid
48 *
49 * @var int
50 */
51 const E_INVALID_ROUTE = 104;
52
53 }