Klement Sekera | 77c821c | 2022-04-14 16:29:07 +0200 | [diff] [blame] | 1 | class CliFailedCommandError(Exception): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2 | """cli command failed.""" |
Klement Sekera | 77c821c | 2022-04-14 16:29:07 +0200 | [diff] [blame] | 3 | |
| 4 | |
| 5 | class CliSyntaxError(Exception): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 6 | """cli command had a syntax error.""" |
Klement Sekera | 77c821c | 2022-04-14 16:29:07 +0200 | [diff] [blame] | 7 | |
| 8 | |
| 9 | class UnexpectedApiReturnValueError(Exception): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 10 | """exception raised when the API return value is unexpected""" |
Klement Sekera | 77c821c | 2022-04-14 16:29:07 +0200 | [diff] [blame] | 11 | |
| 12 | def __init__(self, retval, message): |
| 13 | self.retval = retval |
| 14 | self.message = message |
| 15 | super().__init__(message) |