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

Method __init__

python/lib/cloudutils/cloudException.py:20–27  ·  view source on GitHub ↗
(self, errMsg)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

formatExceptionInfoFunction · 0.85

Tested by

no test coverage detected