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

Namespaces

  • Alo
    • Cache
    • CLI
    • Controller
    • Db
    • Exception
    • FileSystem
    • Session
    • Statics
    • 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          * File system-related exceptions
11          *
12          * @author Art <a.molcanovas@gmail.com>
13          */
14         class FileSystemException extends AbstractException {
15 
16             /**
17              * Code when opening the file fails
18              *
19              * @var int
20              */
21             const E_FOPEN_FAIL = 101;
22 
23             /**
24              * Code when the file path is not set
25              *
26              * @var int
27              */
28             const E_PATH_NOT_SET = 102;
29 
30             /**
31              * Code when a file doesn't exist
32              *
33              * @var int
34              */
35             const E_FILE_NOT_EXISTS = 103;
36 
37             /**
38              * Code when the file or directory name is invalid
39              *
40              * @var int
41              */
42             const E_NAME_INVALID = 104;
43 
44             /**
45              * Code when content supplied is invalid
46              *
47              * @var int
48              */
49             const E_CONTENT_INVALID = 105;
50 
51             /**
52              * Code when the path is invalid
53              *
54              * @var int
55              */
56             const E_PATH_INVALID = 106;
57         }
58     }
59 
AloFramework documentation API documentation generated byApiGen 2.8.0