2020-03-19 18:24:06 +01:00
|
|
|
class GiambioError(Exception):
|
|
|
|
"""Base class for gaimbio exceptions"""
|
|
|
|
pass
|
|
|
|
|
2020-03-19 19:48:24 +01:00
|
|
|
|
|
|
|
class AlreadyJoinedError(GiambioError):
|
|
|
|
pass
|
2020-03-20 11:27:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
class CancelledError(GiambioError):
|
|
|
|
"""Exception raised as a result of the giambio.core.cancel() method"""
|
2020-03-23 18:52:17 +01:00
|
|
|
|
|
|
|
def __repr__(self):
|
|
|
|
return "giambio.exceptions.CancelledError"
|
2020-03-25 11:27:29 +01:00
|
|
|
|
|
|
|
class TaskCancelled(GiambioError):
|
2020-03-25 14:39:32 +01:00
|
|
|
"""This exception is raised when the user attempts to join a cancelled task"""
|
|
|
|
|
|
|
|
class TaskFinished(TaskCancelled):
|
|
|
|
"""This exception is raised when the user attempts to join an already finished task"""
|