etiquette/exceptions.py
Ethan Dalool 8b05a26ff7 checkpoint
Add Bookmark class; Add user.html; Add more commit loggers; Fix warning_bag attributeerror when it was None
2017-02-04 18:30:02 -08:00

80 lines
1.1 KiB
Python

# NO SUCH
class NoSuchAlbum(Exception):
pass
class NoSuchBookmark(Exception):
pass
class NoSuchGroup(Exception):
pass
class NoSuchPhoto(Exception):
pass
class NoSuchSynonym(Exception):
pass
class NoSuchTag(Exception):
pass
class NoSuchUser(Exception):
pass
# EXISTS
class GroupExists(Exception):
pass
class PhotoExists(Exception):
pass
class TagExists(Exception):
pass
class UserExists(Exception):
pass
# TAG ERRORS
class CantSynonymSelf(Exception):
pass
class RecursiveGrouping(Exception):
pass
class TagTooLong(Exception):
pass
class TagTooShort(Exception):
pass
# USER ERRORS
class InvalidUsernameChars(Exception):
pass
class PasswordTooShort(Exception):
pass
class UsernameTooLong(Exception):
pass
class UsernameTooShort(Exception):
pass
class WrongLogin(Exception):
pass
# GENERAL ERRORS
class NotExclusive(Exception):
'''
For when two or more mutually exclusive actions have been requested.
'''
pass
class OutOfOrder(Exception):
'''
For when a requested range (a, b) has b > a
'''
pass