clearml-agent/trains_agent/backend_api/session/errors.py
2019-10-25 22:28:44 +03: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