Laird Nelson wrote:
>
> MARK HAPNER wrote:
> >
> > The term 'application exception' is used to describe an exception that
> > is potentially recoverable and which does not cause a transaction to be
> > rolledback.
> >
> > Runtime exceptions can be thrown and will force transaction rollback.
> > They will get converted to RemoteException by the container.
>
> No, I understand that. I was just wondering if, given that the spec.
> cites argument validation exceptions as examples of application
> exceptions, the recommendation was NOT to use IllegalArgumentException
> for such validation, since IllegalArgumentException is a runtime
> exception and hence cannot be an application exception.
>
> {shrug} I'll keep using these until I see that they don't work well.
>
The use of app exceptions for argument exceptions was just an example.
It is perfectly OK to treat them as IllegalArgumentException as long as
you don't require that exception be delivered to the client.
> Cheers,
> Laird
>
> ===========================================================================
> 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".