=== modified file 'django/core/exceptions.py'
|
|
|
1 | 1 | "Global Django exceptions" |
2 | 2 | |
3 | | class ObjectDoesNotExist(Exception): |
| 3 | class ObjectDoesNotExist(StandardError): |
4 | 4 | "The requested object does not exist" |
5 | 5 | silent_variable_failure = True |
6 | 6 | |
7 | | class MultipleObjectsReturned(Exception): |
| 7 | class MultipleObjectsReturned(StandardError): |
8 | 8 | "The query returned multiple objects when only one was expected." |
9 | 9 | pass |
10 | 10 | |
11 | | class SuspiciousOperation(Exception): |
| 11 | class SuspiciousOperation(StandardError): |
12 | 12 | "The user did something suspicious" |
13 | 13 | pass |
14 | 14 | |
15 | | class PermissionDenied(Exception): |
| 15 | class PermissionDenied(StandardError): |
16 | 16 | "The user did not have permission to do that" |
17 | 17 | pass |
18 | 18 | |
19 | | class ViewDoesNotExist(Exception): |
| 19 | class ViewDoesNotExist(StandardError): |
20 | 20 | "The requested view does not exist" |
21 | 21 | pass |
22 | 22 | |
23 | | class MiddlewareNotUsed(Exception): |
| 23 | class MiddlewareNotUsed(StandardError): |
24 | 24 | "This middleware is not used in this server configuration" |
25 | 25 | pass |
26 | 26 | |
27 | | class ImproperlyConfigured(Exception): |
| 27 | class ImproperlyConfigured(StandardError): |
28 | 28 | "Django is somehow improperly configured" |
29 | 29 | pass |
30 | 30 | |
31 | | class FieldError(Exception): |
| 31 | class FieldError(StandardError): |
32 | 32 | """Some kind of problem with a model field.""" |
33 | 33 | pass |
34 | 34 | |
35 | | class ValidationError(Exception): |
| 35 | class ValidationError(StandardError): |
36 | 36 | """An error while validating data.""" |
37 | 37 | pass |