loris_log.myException

This library own customized exception.

  1"""This library own customized exception.
  2"""
  3
  4class InvalidFTPHostNameException(Exception):
  5    """
  6    Custom exception for the invalid FTP hostname.
  7
  8    Args:\n
  9        Exception (string): The error message.
 10    """
 11    def __str__(self):
 12        return repr("Invalid FTP Host name.")
 13
 14class InvalidFTPPortNumberException(Exception):
 15    """
 16    Custom exception for the invalid FTP port number.
 17
 18    Args:\n
 19        Exception (string): The error message.
 20    """
 21    def __str__(self):
 22        return repr("Invalid FTP Port Number.")
 23
 24class InvalidFTPUserNameException(Exception):
 25    """
 26    Custom exceptionf or the invalid FTP username.
 27
 28    Args:\n
 29        Exception (string): The error message.
 30    """
 31    def __str__(self):
 32        return repr("Invalid FTP Username.")
 33
 34class InvalidFTPPasswordException(Exception):
 35    """
 36    Custom exception for the invalid FTP password.
 37
 38    Args:\n
 39        Exception (string): The error message.
 40    """
 41    def __str__(self):
 42        return repr("Invalid FTP Password.")
 43
 44class InvalidMessageException(Exception):
 45    """
 46    Custom Exception for the invalid message.
 47    
 48    Args:\n
 49        Exception (string): The error message.
 50    """
 51    def __str__(self):
 52        return repr("Invalid message.")
 53
 54class InvalidRoleSecretException(Exception):
 55    """
 56    Custom exception for the invalid role secret.
 57
 58    Args:\n
 59        Exception (string): The error message.
 60    """
 61    def __str__(self):
 62        return repr("Invalid role secret.")
 63
 64class EmptyParameterException(Exception):
 65    """
 66    Custom exception for the empty parameter.
 67
 68    Args:\n
 69        Exception (string): The error message.
 70    """
 71    def __str__(self):
 72        return repr("Attempt to enter empty input.")
 73
 74class InvalidRoleAccessKeyException(Exception):
 75    """
 76    Custom exception for the invalid role access key.
 77
 78    Args:\n
 79        Exception (string): The error message.
 80    """
 81    def __str__(self):
 82        return repr("Invalid role access key.")
 83
 84class NoneValueException(Exception):
 85    """Custom exception for the non value.
 86
 87    Args:\n
 88        Exception (string): The error message.
 89    """
 90    def __str__(self):
 91        return repr("The input value should not be none.")
 92
 93class InvalidAttributeException(Exception):
 94    """Custom exception for attribute error.
 95
 96    Args:\n
 97        Exception (string): The error message.
 98    """
 99    def __str__(self):
100        return repr("Attribute error.")
101
102class InvalidRegionNameException(Exception):
103    """Custom exception for invalid region name.
104
105    Args:\n
106        Exception (string): Invalid region name.
107    """
108    def __str__(self):
109        return repr("Invalid region name.")
110
111class FTPConnectionFailedException(Exception):
112    """
113    Custom exception for FTP Connection Failure.
114
115    Args:\n
116        Exception (string): The error message.
117    """
118    def __str__(self):
119        return repr("FTP Server Connection Failure.")
120
121class FTPFileCreationException(Exception):
122    """
123    Custom exception for file or folder creation failure.
124
125    Args:\n
126        Exception (string): The error message.
127    """
128    def __str__(self):
129        return repr("File or folder creation error.")
class InvalidFTPHostNameException(builtins.Exception):
 5class InvalidFTPHostNameException(Exception):
 6    """
 7    Custom exception for the invalid FTP hostname.
 8
 9    Args:\n
10        Exception (string): The error message.
11    """
12    def __str__(self):
13        return repr("Invalid FTP Host name.")

Custom exception for the invalid FTP hostname.

Args:

Exception (string): The error message.
Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
class InvalidFTPPortNumberException(builtins.Exception):
15class InvalidFTPPortNumberException(Exception):
16    """
17    Custom exception for the invalid FTP port number.
18
19    Args:\n
20        Exception (string): The error message.
21    """
22    def __str__(self):
23        return repr("Invalid FTP Port Number.")

Custom exception for the invalid FTP port number.

Args:

Exception (string): The error message.
Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
class InvalidFTPUserNameException(builtins.Exception):
25class InvalidFTPUserNameException(Exception):
26    """
27    Custom exceptionf or the invalid FTP username.
28
29    Args:\n
30        Exception (string): The error message.
31    """
32    def __str__(self):
33        return repr("Invalid FTP Username.")

Custom exceptionf or the invalid FTP username.

Args:

Exception (string): The error message.
Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
class InvalidFTPPasswordException(builtins.Exception):
35class InvalidFTPPasswordException(Exception):
36    """
37    Custom exception for the invalid FTP password.
38
39    Args:\n
40        Exception (string): The error message.
41    """
42    def __str__(self):
43        return repr("Invalid FTP Password.")

Custom exception for the invalid FTP password.

Args:

Exception (string): The error message.
Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
class InvalidMessageException(builtins.Exception):
45class InvalidMessageException(Exception):
46    """
47    Custom Exception for the invalid message.
48    
49    Args:\n
50        Exception (string): The error message.
51    """
52    def __str__(self):
53        return repr("Invalid message.")

Custom Exception for the invalid message.

Args:

Exception (string): The error message.
Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
class InvalidRoleSecretException(builtins.Exception):
55class InvalidRoleSecretException(Exception):
56    """
57    Custom exception for the invalid role secret.
58
59    Args:\n
60        Exception (string): The error message.
61    """
62    def __str__(self):
63        return repr("Invalid role secret.")

Custom exception for the invalid role secret.

Args:

Exception (string): The error message.
Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
class EmptyParameterException(builtins.Exception):
65class EmptyParameterException(Exception):
66    """
67    Custom exception for the empty parameter.
68
69    Args:\n
70        Exception (string): The error message.
71    """
72    def __str__(self):
73        return repr("Attempt to enter empty input.")

Custom exception for the empty parameter.

Args:

Exception (string): The error message.
Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
class InvalidRoleAccessKeyException(builtins.Exception):
75class InvalidRoleAccessKeyException(Exception):
76    """
77    Custom exception for the invalid role access key.
78
79    Args:\n
80        Exception (string): The error message.
81    """
82    def __str__(self):
83        return repr("Invalid role access key.")

Custom exception for the invalid role access key.

Args:

Exception (string): The error message.
Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
class NoneValueException(builtins.Exception):
85class NoneValueException(Exception):
86    """Custom exception for the non value.
87
88    Args:\n
89        Exception (string): The error message.
90    """
91    def __str__(self):
92        return repr("The input value should not be none.")

Custom exception for the non value.

Args:

Exception (string): The error message.
Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
class InvalidAttributeException(builtins.Exception):
 94class InvalidAttributeException(Exception):
 95    """Custom exception for attribute error.
 96
 97    Args:\n
 98        Exception (string): The error message.
 99    """
100    def __str__(self):
101        return repr("Attribute error.")

Custom exception for attribute error.

Args:

Exception (string): The error message.
Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
class InvalidRegionNameException(builtins.Exception):
103class InvalidRegionNameException(Exception):
104    """Custom exception for invalid region name.
105
106    Args:\n
107        Exception (string): Invalid region name.
108    """
109    def __str__(self):
110        return repr("Invalid region name.")

Custom exception for invalid region name.

Args:

Exception (string): Invalid region name.
Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
class FTPConnectionFailedException(builtins.Exception):
112class FTPConnectionFailedException(Exception):
113    """
114    Custom exception for FTP Connection Failure.
115
116    Args:\n
117        Exception (string): The error message.
118    """
119    def __str__(self):
120        return repr("FTP Server Connection Failure.")

Custom exception for FTP Connection Failure.

Args:

Exception (string): The error message.
Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
class FTPFileCreationException(builtins.Exception):
122class FTPFileCreationException(Exception):
123    """
124    Custom exception for file or folder creation failure.
125
126    Args:\n
127        Exception (string): The error message.
128    """
129    def __str__(self):
130        return repr("File or folder creation error.")

Custom exception for file or folder creation failure.

Args:

Exception (string): The error message.
Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args