Page 1 of 1

About Question com.enthuware.ets.scbcd.v5.2.36 :

Posted: Fri Oct 19, 2012 10:51 am
by javiut
hi i was wondering about the question the following.
An application exception may be a subclass (direct or indirect) of java.lang.Exception (i.e., a “checked exception”), or an application exception class may be defined as a subclass of the java.lang.RuntimeException (an “unchecked exception”).

that implies that ApplicationException might be a Checked or a Unchecked Exception..

According to the SPEC.
a lifecycle CallBack Method...
The method must not throw a checked exception.
it might still throw a Application Exception from a Lifecycle CallBack Method that extends RuntimeException...that means can throw System Exceptions and ApplicationExceptions??' :oops:

please let me know if i am wrong.... :oops:

Re: About Question com.enthuware.ets.scbcd.v5.2.36 :

Posted: Sun Oct 21, 2012 6:40 am
by admin
As the spec says, it must not throw a checked exception. So that means, it may throw a RuntimeException and a RuntimeException may be marked as an application exception using @ApplicationException.

HTH,
Paul.