clearml-agent/clearml_agent/backend_api/session/errors.py
2020-12-22 21:21:29 +02:00

18 lines
345 B
Python

class SessionError(Exception):
pass
class AsyncError(SessionError):
def __init__(self, msg, *args, **kwargs):
super(AsyncError, self).__init__(msg, *args)
for k, v in kwargs.items():
setattr(self, k, v)
class TimeoutExpiredError(SessionError):
pass
class ResultNotReadyError(SessionError):
pass