summaryrefslogtreecommitdiff
path: root/django/core/exceptions.py
blob: 68036f2d7f2309ea6719f9b1dda870facab268c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"Global Django exceptions"

from django.core.template import SilentVariableFailure

class Http404(Exception):
    pass

class ObjectDoesNotExist(SilentVariableFailure):
    "The requested object does not exist"
    pass

class SuspiciousOperation(Exception):
    "The user did something suspicious"
    pass

class PermissionDenied(Exception):
    "The user did not have permission to do that"
    pass

class ViewDoesNotExist(Exception):
    "The requested view does not exist"
    pass

class MiddlewareNotUsed(Exception):
    "This middleware is not used in this server configuration"
    pass