gallery.accords-library.com/server/szurubooru/errors.py

21 lines
712 B
Python
Raw Normal View History

class ConfigError(RuntimeError):
''' A problem with configuration file. '''
class AuthError(RuntimeError):
''' Generic authentication error '''
class IntegrityError(RuntimeError):
''' Database integrity error (e.g. trying to edit nonexisting resource) '''
class ValidationError(RuntimeError):
''' Validation error (e.g. trying to create user with invalid name) '''
2016-04-02 12:40:10 +00:00
class SearchError(RuntimeError):
''' Search error (e.g. trying to use special: where it doesn't make sense) '''
class NotFoundError(RuntimeError):
''' Error thrown when a resource (usually DB) couldn't be found. '''
2016-04-09 19:41:10 +00:00
class ProcessingError(RuntimeError):
''' Error thrown by things such as thumbnail generator. '''