szurubooru/server/szurubooru/errors.py
rr- 4faf42ee19 client+server/general: fix config references
...some references still referred to non-existing config.ini.
2016-04-10 16:23:35 +02:00

20 lines
712 B
Python

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) '''
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. '''
class ProcessingError(RuntimeError):
''' Error thrown by things such as thumbnail generator. '''