From a294cdfef34cda587d288a457c9a2e7bf760e916 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 9 Dec 2009 01:21:21 +0000 Subject: - The exception class representing the error raised by various methods of a ``Configurator`` is now importable as ``repoze.bfg.exceptions.ConfigurationError``. --- repoze/bfg/exceptions.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'repoze/bfg/exceptions.py') diff --git a/repoze/bfg/exceptions.py b/repoze/bfg/exceptions.py index afd617a2c..a5e4755f5 100644 --- a/repoze/bfg/exceptions.py +++ b/repoze/bfg/exceptions.py @@ -1,3 +1,5 @@ +from zope.configuration.exceptions import ConfigurationError as ZCE + class Forbidden(Exception): """\ Raise this exception within :term:`view` code to immediately @@ -22,3 +24,6 @@ class NotFound(Exception): into the WSGI environment under the ``repoze.bfg.message`` key, for availability to the Not Found view.""" +class ConfigurationError(ZCE): + """ Raised when inappropriate input values are supplied to an API + method of a :term:`Configurator`""" -- cgit v1.2.3