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

Namespaces

  • Alo
    • Cache
    • Controller
    • Db
    • Exception
    • Session
    • Statics
    • Test
    • Validators
  • Controller
  • None
  • PHP

Exceptions

  • AbstractException
  • ControllerException
  • CronException
  • ExtensionException
  • FileException
  • ProfilerException
  • SFTPException
  • TesterException
 1 <?php
 2 
 3    namespace Alo\Exception;
 4 
 5    if (!defined('GEN_START')) {
 6       http_response_code(404);
 7       die();
 8    }
 9 
10    /**
11     * SFTP-related exceptions
12     *
13     * @author Art <a.molcanovas@gmail.com>
14     */
15    class SFTPException extends FileException {
16 
17       /**
18        * Code when the authentication process fails
19        *
20        * @var int
21        */
22       const E_AUTH = 201;
23 
24       /**
25        * Code when a file cannot be fetched
26        *
27        * @var int
28        */
29       const E_FILE_NOT_FETCHED = 202;
30 
31       /**
32        * Code when file creation fails
33        *
34        * @var int
35        */
36       const E_FILE_CREATE_FAIL = 203;
37 
38       /**
39        * Code when a local file cannot be read
40        *
41        * @var int
42        */
43       const E_LOCAL_FILE_NOT_READ = 204;
44 
45       /**
46        * Code when initialising the SFTP subsystem fails
47        *
48        * @var int
49        */
50       const E_SUBSYSTEM = 205;
51 
52       /**
53        * Code when connection fails
54        *
55        * @var int
56        */
57       const E_CONNECT = 206;
58 
59       /**
60        * Code when a password is invalid
61        *
62        * @var int
63        */
64       const E_PW_INVALID = 207;
65 
66       /**
67        * Code when the URL is invalid
68        *
69        * @var int
70        */
71       const E_URL_INVALID = 208;
72 
73       /**
74        * Code when the user is invalid
75        *
76        * @var int
77        */
78       const E_USER_INVALID = 209;
79    }
AloFramework documentation API documentation generated by ApiGen 2.8.0