aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_papi_exceptions.py
blob: 611e5a3845d3c25fe526b056f9f9b5372758a399 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)