Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.0-beta-5
-
None
-
None
-
JDK1.4_02 Windows XP Redhat AS 2.1
Description
The actual CatchTag doesn't distinct kind of exception.
<catch var="e">
<doTag/>
</cacth>
<if test="${! empty(e)}">
<process/>
</if>
try {
doTag();
} catch (Throwable t) {
process ();
}
It above all doesn't allow tryCatch nesting.
Improvements are following
1) LIST :
This Tag implements expected exception list. If an unexpected exception is thrown, tag throws it upper.
So it's possible to get
try {
try {
try
catch( exceptionA lower}
{ doLower(); }} catch( exceptionB middle )
{ doMidlle(); }} catch( exceptionC upper) {
doUpper();
}
2) Get REAL exception
As improvement, it implements too dissect exception stack to get the first not Jelly exception and put to context this one.
3) Respect exception class parenthood. A assignable exception will be catched if her ancestor is in excpetion list.
See unit test for more details.
Attachments
Attachments
Issue Links
- is blocked by
-
JELLY-286 Various fixes for JIRA bugs
- Resolved