Exceptions class to be inherited by all Mesos exceptions.
| 22 | |
| 23 | |
| 24 | class MesosException(Exception): |
| 25 | """ |
| 26 | Exceptions class to be inherited by all Mesos exceptions. |
| 27 | """ |
| 28 | def __init__(self, message=None, original_exception=None): |
| 29 | if original_exception is not None: |
| 30 | message = "{msg}: {exception}".format( |
| 31 | msg=message, exception=original_exception) |
| 32 | self.original_exception = original_exception |
| 33 | super(MesosException, self).__init__(message) |
| 34 | |
| 35 | |
| 36 | class MesosHTTPException(MesosException): |
no outgoing calls