MCPcopy Create free account
hub / github.com/apache/cloudstack / CloudRuntimeException

Class CloudRuntimeException

python/lib/cloudutils/cloudException.py:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17import sys
18import traceback
19class CloudRuntimeException(Exception):
20 def __init__(self, errMsg):
21 self.errMsg = errMsg
22
23 value = sys.exc_info()[1]
24 if value is not None:
25 self.errMsg += ", due to:" + str(value)
26
27 self.details = formatExceptionInfo()
28 def __str__(self):
29 return self.errMsg
30 def getDetails(self):
31 return self.details
32
33class CloudInternalException(Exception):
34 def __init__(self, errMsg):

Callers 1

checkMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected