~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
..
acm 443 16 years ago dcoles Added Forum application along with unmodifed versi Diff
acp 443 16 years ago dcoles Added Forum application along with unmodifed versi Diff
auth 443 16 years ago dcoles Added Forum application along with unmodifed versi Diff
captcha 443 16 years ago dcoles Added Forum application along with unmodifed versi Diff
db 443 16 years ago dcoles Added Forum application along with unmodifed versi Diff
diff 443 16 years ago dcoles Added Forum application along with unmodifed versi Diff
hooks 443 16 years ago dcoles Added Forum application along with unmodifed versi Diff
mcp 443 16 years ago dcoles Added Forum application along with unmodifed versi Diff
search 443 16 years ago dcoles Added Forum application along with unmodifed versi Diff
ucp 443 16 years ago dcoles Added Forum application along with unmodifed versi Diff
utf 443 16 years ago dcoles Added Forum application along with unmodifed versi Diff
auth.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 23.7 KB Diff Download File
bbcode.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 15.7 KB Diff Download File
cache.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 9.1 KB Diff Download File
constants.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 7.7 KB Diff Download File
functions.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 100 KB Diff Download File
functions_admin.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 79.3 KB Diff Download File
functions_compress.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 17.3 KB Diff Download File
functions_content.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 34.3 KB Diff Download File
functions_convert.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 59.8 KB Diff Download File
functions_display.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 35.8 KB Diff Download File
functions_install.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 12.6 KB Diff Download File
functions_jabber.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 20.8 KB Diff Download File
functions_messenger.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 35.6 KB Diff Download File
functions_module.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 22.3 KB Diff Download File
functions_posting.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 78 KB Diff Download File
functions_privmsgs.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 51.6 KB Diff Download File
functions_profile_fields.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 31.9 KB Diff Download File
functions_template.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 20.9 KB Diff Download File
functions_transfer.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 15.2 KB Diff Download File
functions_upload.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 22.2 KB Diff Download File
functions_user.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 83.6 KB Diff Download File
index.htm 443 16 years ago dcoles Added Forum application along with unmodifed versi 169 bytes Diff Download File
message_parser.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 46.4 KB Diff Download File
session.php 516 16 years ago dcoles forum: Fixed minor SQL syntax error that upset Pos 64.5 KB Diff Download File
template.php 443 16 years ago dcoles Added Forum application along with unmodifed versi 13.2 KB Diff Download File