aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/common
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2018-08-07 08:01:55 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-08-07 08:01:55 +0000
commitc4e5cb946f068c59ebf29274cdf4c9f860a0b07a (patch)
tree9d0a20cc759459a32c798e08bc93a7099c63d38d /yardstick/common
parent60e326463ae06038facf79f14e29901e9596e0dc (diff)
parent5cd6c9a939b060946e1b38e2c2597a5bbac82024 (diff)
Merge "Change assert statements to raises in CheckValue"
Diffstat (limited to 'yardstick/common')
-rw-r--r--yardstick/common/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/yardstick/common/exceptions.py b/yardstick/common/exceptions.py
index 9fbe19949..b39a0af9c 100644
--- a/yardstick/common/exceptions.py
+++ b/yardstick/common/exceptions.py
@@ -412,3 +412,7 @@ class AclUnknownActionTemplate(YardstickException):
class InvalidMacAddress(YardstickException):
message = 'Mac address "%(mac_address)s" is invalid'
+
+
+class ValueCheckError(YardstickException):
+ message = 'Constraint "%(value1)s %(operator)s %(value2)s" does not hold'