web/_exceptions.py
branchtls-sprint
changeset 1802 d628defebc17
parent 320 e2647e72afe7
child 1977 606923dff11b
--- a/web/_exceptions.py	Thu May 14 10:24:56 2009 +0200
+++ b/web/_exceptions.py	Thu May 14 11:38:40 2009 +0200
@@ -2,7 +2,7 @@
 """exceptions used in the core of the CubicWeb web application
 
 :organization: Logilab
-:copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 """
 __docformat__ = "restructuredtext en"
@@ -11,13 +11,13 @@
 
 class PublishException(CubicWebException):
     """base class for publishing related exception"""
-    
+
 class RequestError(PublishException):
     """raised when a request can't be served because of a bad input"""
 
 class NothingToEdit(RequestError):
     """raised when an edit request doesn't specify any eid to edit"""
-    
+
 class NotFound(RequestError):
     """raised when a 404 error should be returned"""
 
@@ -34,7 +34,7 @@
     def __init__(self, status, content=''):
         self.status = int(status)
         self.content = content
-    
+
 class ExplicitLogin(AuthenticationError):
     """raised when a bad connection id is given or when an attempt to establish
     a connection failed"""
@@ -55,4 +55,3 @@
     def dumps(self):
         import simplejson
         return simplejson.dumps({'reason': self.reason})
-