X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=roundup%2Fcgi%2Fexceptions.py;h=b7f33cbd8108da756394d79c9212b284867532cf;hb=6314ef18bd925ad0d16b7e47439cf8d384eb8be4;hp=29298952c7096fb7d75477eb5099a3227877959c;hpb=fe0efeb4a676baa5bfd0669e1a47a62afb9dcf8b;p=roundup.git diff --git a/roundup/cgi/exceptions.py b/roundup/cgi/exceptions.py index 2929895..b7f33cb 100755 --- a/roundup/cgi/exceptions.py +++ b/roundup/cgi/exceptions.py @@ -1,8 +1,17 @@ +#$Id: exceptions.py,v 1.6 2004-11-18 14:10:27 a1s Exp $ +'''Exceptions for use in Roundup's web interface. +''' + +__docformat__ = 'restructuredtext' + import cgi class HTTPException(Exception): pass +class LoginError(HTTPException): + pass + class Unauthorised(HTTPException): pass @@ -43,11 +52,11 @@ class SeriousError(Exception): def __str__(self): return ''' Roundup issue tracker: An error has occurred - - +

%s

'''%cgi.escape(self.args[0]) +# vim: set filetype=python sts=4 sw=4 et si :