| 17 | import sys |
| 18 | import traceback |
| 19 | class 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 | |
| 33 | class CloudInternalException(Exception): |
| 34 | def __init__(self, errMsg): |