1 <?php
2
3 namespace Alo\Exception;
4
5 if(!defined('GEN_START')) {
6 http_response_code(404);
7 die();
8 }
9
10 /**
11 * File system-related exceptions
12 *
13 * @author Art <a.molcanovas@gmail.com>
14 */
15 class FileSystemException extends AbstractException {
16
17 /**
18 * Code when opening the file fails
19 *
20 * @var int
21 */
22 const E_FOPEN_FAIL = 101;
23
24 /**
25 * Code when the file path is not set
26 *
27 * @var int
28 */
29 const E_PATH_NOT_SET = 102;
30
31 /**
32 * Code when a file doesn't exist
33 *
34 * @var int
35 */
36 const E_FILE_NOT_EXISTS = 103;
37
38 /**
39 * Code when the file or directory name is invalid
40 *
41 * @var int
42 */
43 const E_NAME_INVALID = 104;
44
45 /**
46 * Code when content supplied is invalid
47 *
48 * @var int
49 */
50 const E_CONTENT_INVALID = 105;
51
52 /**
53 * Code when the path is invalid
54 *
55 * @var int
56 */
57 const E_PATH_INVALID = 106;
58 }