~azzar1/unity/add-show-desktop-key

  • Committer: mattgiuca
  • Date: 2008-02-22 00:53:35 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:540
Refactored error handling and reporting. Much friendlier error messages, for
both developers and users.

Note that PythonDebug is now going to be ignored. IVLE itself selects when to
display a traceback. (So IVLE will display tracebacks even in a production
environment, for internal server errors).

common/util.py: Added class IVLEError, which is now used for throwing
user-readable errors inside IVLE instead of throwing apache SERVER_RETURN
exceptions.

dispatch/request: throw_error now throws an IVLEError instead of a
SERVER_RETURN. It also takes a new argument, "message", which can be used to
place an optional message inside the exception which will be displayed to the
user.
Finally, added a method get_http_codename which returns the name and
description of common HTTP error codes. (Used to report errors which don't
have a message supplied).

dispatch/__init__: Added a wrapper around handler which catches all exceptions
thrown out of IVLE.
The handler for this selectively handles exceptions.
4xx level exceptions thrown are user errors, so these are reported in a very
friendly way, with no traceback, and in the familiar IVLE environment.
5xx level exceptions and any other exceptions are reported in a minimal
environment (to avoid cascading errors) with a traceback and a request for the
user to report it to the administrators.

As many calls to req.throw_error as possible should now have a message
included, to make identifying errors easier.
Filename Latest Rev Last Changed Committer Comment Size
..
__init__.py 409 17 years ago mattgiuca Moved www/conf and www/common to a new directory l Empty Diff Download File
caps.py 488 17 years ago drtomc caps.py: Added more capabilities and descriptions. 5.1 KB Diff Download File
cgirequest.py 506 17 years ago mattgiuca dispatch.__init__, dispatch.request, cgirequest: 11.3 KB Diff Download File
chat.py 432 17 years ago drtomc usrmgt: more work on this. Still some work to go. 3.2 KB Diff Download File
db.py 532 17 years ago mattgiuca db.py: Augmented create_user. Now able to acce 17.2 KB Diff Download File
forumutil.py 501 17 years ago mattgiuca forumutil.py: Fix from previous revision. "rolenm" 1.6 KB Diff Download File
interpret.py 505 17 years ago mattgiuca dispatch.html, consoleservice, userservice, interp 14.4 KB Diff Download File
makeuser.py 528 17 years ago drtomc usrmgt-server: robustify svn url handling a bit. 9.1 KB Diff Download File
studpath.py 522 17 years ago drtomc Add quite a lot of stuff to get usrmgt happening. 5.4 KB Diff Download File
user.py 522 17 years ago drtomc Add quite a lot of stuff to get usrmgt happening. 3.6 KB Diff Download File
util.py 540 17 years ago mattgiuca Refactored error handling and reporting. Much frie 4.6 KB Diff Download File
zip.py 409 17 years ago mattgiuca Moved www/conf and www/common to a new directory l 4.4 KB Diff Download File