clearml-agent/clearml_agent/backend_api/session/errors.py

18 lines
345 B
Python
Raw Normal View History

2019-10-25 19:28:44 +00:00
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