|
4 | 4 |
|
5 | 5 | class InvalidKeyException(Exception): |
6 | 6 | """Invalid key - something is wrong with the key, and it should not be accepted, as OpenSSH will not work with it.""" |
7 | | - pass |
8 | 7 |
|
9 | 8 |
|
10 | 9 | class InvalidKeyError(InvalidKeyException): |
11 | 10 | """Invalid key - something is wrong with the key, and it should not be accepted, as OpenSSH will not work with it.""" |
12 | | - pass |
13 | 11 |
|
14 | 12 |
|
15 | 13 | class InvalidKeyLengthException(InvalidKeyError): |
16 | 14 | """Invalid key length - either too short or too long. |
17 | 15 |
|
18 | 16 | See also TooShortKeyException and TooLongKeyException.""" |
19 | | - pass |
20 | 17 |
|
21 | 18 |
|
22 | 19 | class InvalidKeyLengthError(InvalidKeyError): |
23 | 20 | """Invalid key length - either too short or too long. |
24 | 21 |
|
25 | 22 | See also TooShortKeyException and TooLongKeyException.""" |
26 | | - pass |
27 | 23 |
|
28 | 24 |
|
29 | 25 | class TooShortKeyException(InvalidKeyLengthError): |
30 | 26 | """Key is shorter than what the specification allow.""" |
31 | | - pass |
32 | 27 |
|
33 | 28 |
|
34 | 29 | class TooShortKeyError(TooShortKeyException): |
35 | 30 | """Key is shorter than what the specification allows.""" |
36 | | - pass |
37 | 31 |
|
38 | 32 |
|
39 | 33 | class TooLongKeyException(InvalidKeyLengthError): |
40 | 34 | """Key is longer than what the specification allows.""" |
41 | | - pass |
42 | 35 |
|
43 | 36 |
|
44 | 37 | class TooLongKeyError(TooLongKeyException): |
45 | 38 | """Key is longer than what the specification allows.""" |
46 | | - pass |
47 | 39 |
|
48 | 40 |
|
49 | 41 | class InvalidTypeException(InvalidKeyError): |
50 | 42 | """Key type is invalid or unrecognized.""" |
51 | | - pass |
52 | 43 |
|
53 | 44 |
|
54 | 45 | class InvalidTypeError(InvalidTypeException): |
55 | 46 | """Key type is invalid or unrecognized.""" |
56 | | - pass |
57 | 47 |
|
58 | 48 |
|
59 | 49 | class MalformedDataException(InvalidKeyError): |
60 | 50 | """The key is invalid - unable to parse the data. The data may be corrupted, truncated, or includes extra content that is not allowed.""" |
61 | | - pass |
62 | 51 |
|
63 | 52 |
|
64 | 53 | class MalformedDataError(MalformedDataException): |
65 | 54 | """The key is invalid - unable to parse the data. The data may be corrupted, truncated, or includes extra content that is not allowed.""" |
66 | | - pass |
67 | 55 |
|
68 | 56 |
|
69 | 57 | class InvalidOptionsException(MalformedDataError): |
70 | 58 | """Options string is invalid: it contains invalid characters, unrecognized options, or is otherwise malformed.""" |
71 | | - pass |
72 | 59 |
|
73 | 60 |
|
74 | 61 | class InvalidOptionsError(InvalidOptionsException): |
75 | 62 | """Options string is invalid: it contains invalid characters, unrecognized options, or is otherwise malformed.""" |
76 | | - pass |
77 | 63 |
|
78 | 64 |
|
79 | 65 | class InvalidOptionNameException(InvalidOptionsError): |
80 | 66 | """Invalid option name (contains disallowed characters, or is unrecognized.).""" |
81 | | - pass |
82 | 67 |
|
83 | 68 |
|
84 | 69 | class InvalidOptionNameError(InvalidOptionNameException): |
85 | 70 | """Invalid option name (contains disallowed characters, or is unrecognized.).""" |
86 | | - pass |
87 | 71 |
|
88 | 72 |
|
89 | 73 | class UnknownOptionNameException(InvalidOptionsError): |
90 | 74 | """Unrecognized option name.""" |
91 | | - pass |
92 | 75 |
|
93 | 76 |
|
94 | 77 | class UnknownOptionNameError(UnknownOptionNameException): |
95 | 78 | """Unrecognized option name.""" |
96 | | - pass |
97 | 79 |
|
98 | 80 |
|
99 | 81 | class MissingMandatoryOptionValueException(InvalidOptionsError): |
100 | 82 | """Mandatory option value is missing.""" |
101 | | - pass |
102 | 83 |
|
103 | 84 |
|
104 | 85 | class MissingMandatoryOptionValueError(MissingMandatoryOptionValueException): |
105 | 86 | """Mandatory option value is missing.""" |
106 | | - pass |
0 commit comments