[Actionframework-users] trying to catch various exceptions
Status: Inactive
Brought to you by:
ptoman
|
From: <bm...@ho...> - 2003-11-24 18:53:11
|
hi.
I'm trying to catch various exceptions that can be launched from any =
component so I have that in the xml controller file:
....
<on-exception class=3D'org.actionframework.ActionException' =
show-url=3D'url'>
<output-variable name=3D'url' value=3D'$SERVLET/' />
</on-exception>
<on-exception =
class=3D'com.hola.postales.exceptions.InvalidPostcardException' =
show-url=3D'url'>
<output-variable name=3D'url' value=3D'$SERVLET/' />
</on-exception> =20
=20
</components>
</application>
but I become the following error:
Wrong order of <on-exception> classes: =
'org.actionframework.ActionException' cannot follow =
'org.actionframework.ActionException'
If I have only one <on-exception> it's catched whenever it's neccesary, =
but when there are more than one, it doesn't work.
thx in advance.
|