2016-12-16 23:45:46 +00:00
|
|
|
# NO SUCH
|
2016-12-13 03:49:36 +00:00
|
|
|
class NoSuchAlbum(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class NoSuchGroup(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class NoSuchPhoto(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class NoSuchSynonym(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class NoSuchTag(Exception):
|
|
|
|
pass
|
|
|
|
|
2016-12-16 23:45:46 +00:00
|
|
|
class NoSuchUser(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
# EXISTS
|
|
|
|
class GroupExists(Exception):
|
|
|
|
pass
|
2016-12-13 03:49:36 +00:00
|
|
|
|
|
|
|
class PhotoExists(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class TagExists(Exception):
|
|
|
|
pass
|
|
|
|
|
2016-12-16 23:45:46 +00:00
|
|
|
class UserExists(Exception):
|
2016-12-13 03:49:36 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2016-12-16 23:45:46 +00:00
|
|
|
# TAG ERRORS
|
2016-12-21 05:33:14 +00:00
|
|
|
class CantSynonymSelf(Exception):
|
|
|
|
pass
|
|
|
|
|
2016-12-21 02:31:09 +00:00
|
|
|
class RecursiveGrouping(Exception):
|
|
|
|
pass
|
|
|
|
|
2016-12-13 03:49:36 +00:00
|
|
|
class TagTooLong(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class TagTooShort(Exception):
|
|
|
|
pass
|
|
|
|
|
2016-12-16 23:45:46 +00:00
|
|
|
|
|
|
|
# USER ERRORS
|
|
|
|
class InvalidUsernameChars(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class PasswordTooShort(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class UsernameTooLong(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class UsernameTooShort(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class WrongLogin(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
# GENERAL ERRORS
|
2016-12-13 03:49:36 +00:00
|
|
|
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
|
|
|
|
'''
|
2016-12-16 11:27:39 +00:00
|
|
|
pass
|