diff options
Diffstat (limited to 'test/vpp_papi_exceptions.py')
-rw-r--r-- | test/vpp_papi_exceptions.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/vpp_papi_exceptions.py b/test/vpp_papi_exceptions.py new file mode 100644 index 00000000000..2f7da963f70 --- /dev/null +++ b/test/vpp_papi_exceptions.py @@ -0,0 +1,15 @@ +class CliFailedCommandError(Exception): + """ cli command failed.""" + + +class CliSyntaxError(Exception): + """ cli command had a syntax error.""" + + +class UnexpectedApiReturnValueError(Exception): + """ exception raised when the API return value is unexpected """ + + def __init__(self, retval, message): + self.retval = retval + self.message = message + super().__init__(message) |