you can throw exceptions from your interface methods, just add them to the
interface and the implementing method's throws clauses.

hth
dim

----- Original Message -----
From: "Todd Marshall" <[EMAIL PROTECTED]>
To: "Jboss-User@Lists. Sourceforge. Net" <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 9:53 PM
Subject: [JBoss-user] throwing custom exceptions in EJB with CMP


> Hey all-
>   I posted this to the forums with no response...
>
> In one of my EJBs I throw a custom exception.
>
> I'd like to be able to catch this exception in my client jsp code, but
> instead of throwing my exception, an UndeclaredThrowableException is
thrown
> with my exception nested in it.
>
> is there anything I can do to make my exception "declared"?
>
> -Todd
>
> here's the code for my exception:
> public class UnknownCreditCardTypeException extends Exception
> {
>   public UnknownCreditCardTypeException(String sMessage)
>   {
> super(sMessage);
>   }
> }
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to