X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=yardstick%2Fcommon%2Fexceptions.py;h=5e0df973a2bc145d8d2fa1f915829775c00f526b;hb=d63664d5cea2b9f3e609158d983f2033e60e7ec9;hp=c9d61e45cbfaa327ad90f561289471dfc9362c9f;hpb=dcf8aa87f04ffd14f0cab5b39fa1915627824cad;p=yardstick.git diff --git a/yardstick/common/exceptions.py b/yardstick/common/exceptions.py index c9d61e45c..5e0df973a 100644 --- a/yardstick/common/exceptions.py +++ b/yardstick/common/exceptions.py @@ -424,3 +424,15 @@ class InvalidMacAddress(YardstickException): class ValueCheckError(YardstickException): message = 'Constraint "%(value1)s %(operator)s %(value2)s" does not hold' + + +class RestApiError(RuntimeError): + def __init__(self, message): + self._message = message + super(RestApiError, self).__init__(message) + + +class LandslideTclException(RuntimeError): + def __init__(self, message): + self._message = message + super(LandslideTclException, self).__init__(message)