2019-10-16 14:16:30 +00:00
|
|
|
class General(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2019-10-25 08:17:39 +00:00
|
|
|
class User(General):
|
2019-10-16 14:16:30 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2019-10-25 08:17:39 +00:00
|
|
|
class UnknownUser(User):
|
|
|
|
def __init__(self, name):
|
|
|
|
Exception.__init__(self, f"Tried to perform action on unknown user '{name}'")
|
|
|
|
|
|
|
|
|
|
|
|
class UserExistsAlready(User):
|
|
|
|
def __init__(self, name):
|
|
|
|
Exception.__init__(self, f"User '{name}' is already registered")
|
2019-10-16 14:16:30 +00:00
|
|
|
|
|
|
|
|
2019-10-25 08:17:39 +00:00
|
|
|
class UnknownReturnCode(General):
|
2019-10-16 14:16:30 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class ModifyFilesystem(General):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2019-10-16 18:52:15 +00:00
|
|
|
class SSHDirUncreatable(ModifyFilesystem):
|
2019-10-16 14:16:30 +00:00
|
|
|
pass
|
2019-10-16 18:52:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
class SQLiteDatabaseDoesntExistYet(General):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class UsernameLength(User):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class UsernameTooShort(User):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class UsernameTooLong(User):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class UsernameInvalidCharacters(User):
|
|
|
|
pass
|