Merge "Update NSB PROX devguide"
[yardstick.git] / yardstick / common / exceptions.py
index 10c1f3f..5e0df97 100644 (file)
@@ -83,6 +83,10 @@ class InvalidType(YardstickException):
     message = 'Type "%(type_to_convert)s" is not valid'
 
 
+class InvalidRxfFile(YardstickException):
+    message = 'Loaded rxf file has unexpected format'
+
+
 class InfluxDBConfigurationMissing(YardstickException):
     message = ('InfluxDB configuration is not available. Add "influxdb" as '
                'a dispatcher and the configuration section')
@@ -420,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)