Merge branch '404_relationship_bugfix' of git://github.com/melinath/philo
[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 get_subpath when the View does not provide subpaths (the default). """
9         silent_variable_failure = True
10
11
12 class ViewCanNotProvideSubpath(Exception):
13         """ Raised by get_subpath when the View can not provide a subpath for the supplied object. """
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