f53083d17be1da692e31553e6872a81028fa4c2a
[philo.git] / exceptions.py
1 from django.core.exceptions import ImproperlyConfigured
2
3
4 MIDDLEWARE_NOT_CONFIGURED = ImproperlyConfigured("""Philo requires the RequestNode middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'philo.middleware.RequestNodeMiddleware'.""")
5
6
7 class ViewDoesNotProvideSubpaths(Exception):
8         """ Raised by View.reverse when the View does not provide subpaths (the default). """
9         silent_variable_failure = True
10
11
12 class ViewCanNotProvideSubpath(Exception):
13         """ Raised by View.reverse when the View can not provide a subpath for the supplied arguments. """
14         silent_variable_failure = True
15
16
17 class AncestorDoesNotExist(Exception):
18         """ Raised by get_path if the root model is not an ancestor of the current model """
19         pass