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

Function formatExceptionInfo

python/lib/cloudutils/cloudException.py:39–45  ·  view source on GitHub ↗
(maxTBlevel=5)

Source from the content-addressed store, hash-verified

37 return self.errMsg
38
39def formatExceptionInfo(maxTBlevel=5):
40 cla, exc, trbk = sys.exc_info()
41 excTb = traceback.format_tb(trbk, maxTBlevel)
42 msg = str(exc) + "\n"
43 for tb in excTb:
44 msg += tb
45 return msg

Callers 11

runMethod · 0.85
__init__Method · 0.85
configurationMethod · 0.85
restoreMethod · 0.85
restoreMethod · 0.85
restoreMethod · 0.85
restoreMethod · 0.85
configMethod · 0.85
restoreMethod · 0.85
restoreMethod · 0.85
restoreMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected