cloudstack/tools/testClient/cloudstackException.py
2011-08-10 18:36:42 -07:00

24 lines
672 B
Python

class cloudstackAPIException(Exception):
def __init__(self, cmd = "", result = ""):
self.errorMsg = "Execute cmd: %s failed, due to: %s"%(cmd, result)
def __str__(self):
return self.errorMsg
class InvalidParameterException(Exception):
def __init__(self, msg=''):
self.errorMsg = msg
def __str__(self):
return self.errorMsg
class dbException(Exception):
def __init__(self, msg=''):
self.errorMsg = msg
def __str__(self):
return self.errorMsg
class internalError(Exception):
def __init__(self, msg=''):
self.errorMsg = msg
def __str__(self):
return self.errorMsg