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