From 0cc7030aab9f2b97ce6b5db55d6d1a8a32d50231 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 26 Sep 2012 21:47:19 +0100 Subject: Fix @api_view decorator tests --- rest_framework/exceptions.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rest_framework/exceptions.py') diff --git a/rest_framework/exceptions.py b/rest_framework/exceptions.py index e7836ecd..572425b9 100644 --- a/rest_framework/exceptions.py +++ b/rest_framework/exceptions.py @@ -77,3 +77,10 @@ class Throttled(APIException): self.detail = format % (self.wait, self.wait != 1 and 's' or '') else: self.detail = detail or self.default_detail + + +class ConfigurationError(Exception): + """ + Indicates an internal server error. + """ + pass -- cgit v1.2.3