Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.3
-
Fix Version/s: 1.1-alpha-1
-
Component/s: Web interface
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
It's possible to setup a servlet filter or something similar that maybe webwork already has (Struts has it) to catch all unhandled exceptions, log them to the log file and redirect the user to a "internal error" page.
Related to this we should make ContinuumException a RuntimeException, don't catch it in the web layer and let the previous mechanism do it. We'll save a lot of exception handling code not needed.
Note that this is only for system exceptions, eg. if database is down, and not model exceptions, eg. when looking up by id it the record doesn't exist.
ContinuumException can't be a RuntimeException. Perhaps we can split it in two classes, a normal exception and a runtime
For exception handling:
http://forums.opensymphony.com/thread.jspa;jsessionid=apk1X_F1tR998Gv1cY?messageID=34547蛳
http://wiki.opensymphony.com/display/WW/Exception+Interceptor
http://wiki.opensymphony.com/display/WW/Exception+Handling