X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/ed6b9876b7abff0b2dc6266d6f769c319f358a9c..7ebd19fad0a3feffc6ed3c3917799c26aaa223d3:/philo/exceptions.py diff --git a/philo/exceptions.py b/philo/exceptions.py index f53083d..9f908c0 100644 --- a/philo/exceptions.py +++ b/philo/exceptions.py @@ -1,19 +1,20 @@ from django.core.exceptions import ImproperlyConfigured +#: Raised if ``request.node`` is required but not present. For example, this can be raised by :func:`philo.views.node_view`. :data:`MIDDLEWARE_NOT_CONFIGURED` is an instance of :exc:`django.core.exceptions.ImproperlyConfigured`. MIDDLEWARE_NOT_CONFIGURED = ImproperlyConfigured("""Philo requires the RequestNode middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'philo.middleware.RequestNodeMiddleware'.""") class ViewDoesNotProvideSubpaths(Exception): - """ Raised by View.reverse when the View does not provide subpaths (the default). """ + """Raised by :meth:`.View.reverse` when the :class:`.View` does not provide subpaths (the default).""" silent_variable_failure = True class ViewCanNotProvideSubpath(Exception): - """ Raised by View.reverse when the View can not provide a subpath for the supplied arguments. """ + """Raised by :meth:`.View.reverse` when the :class:`.View` can not provide a subpath for the supplied arguments.""" silent_variable_failure = True class AncestorDoesNotExist(Exception): - """ Raised by get_path if the root model is not an ancestor of the current model """ + """Raised by :meth:`.TreeEntity.get_path` if the root instance is not an ancestor of the current instance.""" pass \ No newline at end of file