X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=yardstick%2Fcommon%2Fexceptions.py;h=04920943d891eac977e15af5003c1654d60bce94;hb=c47c33e6071a14485929bb58ee6e1d2aaeff7243;hp=13117e02f8a41dad15a45072aed08330ce42a67e;hpb=153fd9e3bfe9682c6225e17e7e7fd3122569dd90;p=yardstick.git diff --git a/yardstick/common/exceptions.py b/yardstick/common/exceptions.py index 13117e02f..04920943d 100644 --- a/yardstick/common/exceptions.py +++ b/yardstick/common/exceptions.py @@ -54,6 +54,10 @@ class YardstickException(Exception): return False +class ResourceCommandError(YardstickException): + message = 'Command: "%(command)s" Failed, stderr: "%(stderr)s"' + + class FunctionNotImplemented(YardstickException): message = ('The function "%(function_name)s" is not implemented in ' '"%(class_name)" class.') @@ -218,3 +222,11 @@ class ScenarioDeleteKeypairError(YardstickException): class ScenarioAttachVolumeError(YardstickException): message = 'Nova Attach Volume Scenario failed' + + +class ScenarioGetServerError(YardstickException): + message = 'Nova Get Server Scenario failed' + + +class ScenarioGetFlavorError(YardstickException): + message = 'Nova Get Falvor Scenario failed'