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          * SFTP-related exceptions
11          *
12          * @author Art <a.molcanovas@gmail.com>
13          */
14         class SFTPException extends FileSystemException {
15 
16             /**
17              * Code when the authentication process fails
18              *
19              * @var int
20              */
21             const E_AUTH = 201;
22 
23             /**
24              * Code when a file cannot be fetched
25              *
26              * @var int
27              */
28             const E_FILE_NOT_FETCHED = 202;
29 
30             /**
31              * Code when file creation fails
32              *
33              * @var int
34              */
35             const E_FILE_CREATE_FAIL = 203;
36 
37             /**
38              * Code when a local file cannot be read
39              *
40              * @var int
41              */
42             const E_LOCAL_FILE_NOT_READ = 204;
43 
44             /**
45              * Code when initialising the SFTP subsystem fails
46              *
47              * @var int
48              */
49             const E_SUBSYSTEM = 205;
50 
51             /**
52              * Code when connection fails
53              *
54              * @var int
55              */
56             const E_CONNECT = 206;
57 
58             /**
59              * Code when a password is invalid
60              *
61              * @var int
62              */
63             const E_PW_INVALID = 207;
64 
65             /**
66              * Code when the URL is invalid
67              *
68              * @var int
69              */
70             const E_URL_INVALID = 208;
71 
72             /**
73              * Code when the user is invalid
74              *
75              * @var int
76              */
77             const E_USER_INVALID = 209;
78         }
79     }
80 
AloFramework documentation API documentation generated byApiGen 2.8.0