index 29298952c7096fb7d75477eb5099a3227877959c..b7f33cbd8108da756394d79c9212b284867532cf 100755 (executable)
+#$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
def __str__(self):
return '''
<html><head><title>Roundup issue tracker: An error has occurred</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8;">
- <link rel="stylesheet" type="text/css" href="_file/style.css">
+ <link rel="stylesheet" type="text/css" href="@@file/style.css">
</head>
<body class="body" marginwidth="0" marginheight="0">
<p class="error-message">%s</p>
</body></html>
'''%cgi.escape(self.args[0])
+# vim: set filetype=python sts=4 sw=4 et si :