~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
..
icon_arrow.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 170 bytes Diff Download File
icon_cool.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 172 bytes Diff Download File
icon_cry.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 498 bytes Diff Download File
icon_e_biggrin.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 413 bytes Diff Download File
icon_e_confused.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 410 bytes Diff Download File
icon_e_geek.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 410 bytes Diff Download File
icon_e_sad.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 420 bytes Diff Download File
icon_e_smile.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 416 bytes Diff Download File
icon_e_surprised.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 427 bytes Diff Download File
icon_e_ugeek.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 422 bytes Diff Download File
icon_e_wink.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 413 bytes Diff Download File
icon_eek.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 170 bytes Diff Download File
icon_evil.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 236 bytes Diff Download File
icon_exclaim.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 236 bytes Diff Download File
icon_idea.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 176 bytes Diff Download File
icon_lol.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 336 bytes Diff Download File
icon_mad.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 174 bytes Diff Download File
icon_mrgreen.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 349 bytes Diff Download File
icon_neutral.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 171 bytes Diff Download File
icon_question.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 248 bytes Diff Download File
icon_razz.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 176 bytes Diff Download File
icon_redface.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 650 bytes Diff Download File
icon_rolleyes.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 485 bytes Diff Download File
icon_twisted.gif 443 17 years ago dcoles Added Forum application along with unmodifed versi 238 bytes Diff Download File