1 # Copyright (c) Twisted Matrix Laboratories.
2 # See LICENSE for details.
8 def __init__(self, label):
12 return '<%s: %s>' % (self.group, self.label)
18 class StatusEnum(Enum):
21 OFFLINE = Enum('Offline')
22 ONLINE = Enum('Online')
25 class OfflineError(Exception):
26 """The requested action can't happen while offline."""