diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-12-09 01:21:21 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-12-09 01:21:21 +0000 |
| commit | a294cdfef34cda587d288a457c9a2e7bf760e916 (patch) | |
| tree | a522d838a6e98832a5ed8bf934eabdbc07a3cd98 /repoze/bfg/exceptions.py | |
| parent | 05d6f55437971a7059ea82e6fd3f6dedb4202ba5 (diff) | |
| download | pyramid-a294cdfef34cda587d288a457c9a2e7bf760e916.tar.gz pyramid-a294cdfef34cda587d288a457c9a2e7bf760e916.tar.bz2 pyramid-a294cdfef34cda587d288a457c9a2e7bf760e916.zip | |
- The exception class representing the error raised by various methods
of a ``Configurator`` is now importable as
``repoze.bfg.exceptions.ConfigurationError``.
Diffstat (limited to 'repoze/bfg/exceptions.py')
| -rw-r--r-- | repoze/bfg/exceptions.py | 5 |
1 files changed, 5 insertions, 0 deletions
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`""" |
