diff options
author | Rex Lee <limingjiang@huawei.com> | 2018-08-07 08:01:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-08-07 08:01:55 +0000 |
commit | c4e5cb946f068c59ebf29274cdf4c9f860a0b07a (patch) | |
tree | 9d0a20cc759459a32c798e08bc93a7099c63d38d /yardstick/common | |
parent | 60e326463ae06038facf79f14e29901e9596e0dc (diff) | |
parent | 5cd6c9a939b060946e1b38e2c2597a5bbac82024 (diff) |
Merge "Change assert statements to raises in CheckValue"
Diffstat (limited to 'yardstick/common')
-rw-r--r-- | yardstick/common/exceptions.py | 4 |
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' |