2016-04-03 17:00:47 +00:00
|
|
|
class ConfigError(RuntimeError):
|
2016-04-10 09:31:41 +00:00
|
|
|
''' A problem with configuration file. '''
|
2016-03-28 12:14:50 +00:00
|
|
|
|
|
|
|
class AuthError(RuntimeError):
|
|
|
|
''' Generic authentication error '''
|
|
|
|
|
|
|
|
class IntegrityError(RuntimeError):
|
2016-04-02 08:01:27 +00:00
|
|
|
''' 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) '''
|
2016-04-03 14:04:10 +00:00
|
|
|
|
|
|
|
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. '''
|