1
0
mirror of https://github.com/django/django.git synced 2025-05-06 06:56:30 +00:00
django/django/core/exceptions.py
2005-07-16 22:12:24 +00:00

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