mirror of
https://github.com/django/django.git
synced 2025-05-06 06:56:30 +00:00
git-svn-id: http://code.djangoproject.com/svn/django/trunk@120 bcc190cf-cafb-0310-a4f2-bffc1f526a37
31 lines
692 B
Python
31 lines
692 B
Python
"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
|
|
|
|
class ImproperlyConfigured(Exception):
|
|
"Django is somehow improperly configured"
|
|
pass
|