1
# Copyright (c) 2001-2004 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."""