AloFramework documentation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Alo
    • Cache
    • CLI
    • Controller
    • Db
    • Exception
    • FileSystem
    • Session
    • Validators
    • Windows
  • Controller
  • None
  • PHP

Exceptions

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