Re: [Actionframework-users] trying to catch various exceptions
Status: Inactive
Brought to you by:
ptoman
From: <bm...@ho...> - 2003-11-25 15:39:24
|
the thing is that if I change the order, I become the following error: Wrong order of <on-exception> classes: 'com.hola.postales.exceptions.InvalidPostcardException' cannot follow 'com.hola.postales.exceptions.InvalidPostcardException' pd: InvalidPostcardException is a child class of java.lang.Exception and not of ActionException bye. ----- Original Message ----- From: "Petr Toman" <Pet...@pi...> To: <act...@li...> Sent: Tuesday, November 25, 2003 11:22 AM Subject: Re: [Actionframework-users] trying to catch various exceptions > > I'm trying to catch various exceptions that can be launched from any > > component so I have that in the xml controller file: > > [...] > > 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. > > Such error should be reported only if InvalidPostcardException is a > child of ActionException. If so, switch the order of your exceptions. > > -Petr > [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] > |