While the EJB spec does not explicitly state this, it was intended that an application
exception
should be a subclass of java.lang.Exception, not the java.lang.Exception itself.
Vlada
----- Original Message -----
From: Richard Friedman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 26, 2000 8:45 AM
Subject: throws Exception
> I understand the following might be bad programming
> style but I believe the spec does not state
> specifically if throws Exception is valid throws line
> in a business method.
>
> Chapter 12 (12.2.1) it states that an application
> exception must NOT extend Runtime or Remote but it
> does not state that an Application Exception must
> extend Exception, therefore it could be construed that
> throwing (and declaring to throw) Exception would be a
> valid application exception.
>
> Any thoughts?
> Thanks in advance.
> -Rich Friedman.
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".