RE: [JBoss-user] Throwing exception question....

2004-01-14 Thread Rod Macpherson
ts pagelet. -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 2:07 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Throwing exception question Right!but doesn't... Here's what the jsp looks like.. <% Initi

RE: [JBoss-user] Throwing exception question....

2004-01-14 Thread Pitre, Russell
s corresponding bean implementation both throw MaxRequestObjectsException... Thanx- Russ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rod Macpherson Sent: Wednesday, January 14, 2004 4:50 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Throwing exception question

RE: [JBoss-user] Throwing exception question....

2004-01-14 Thread Rod Macpherson
The JSP compile should fail in that case. -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 12:38 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Throwing exception question Yah, I have my MaxNumberOfRequestsException class

RE: [JBoss-user] Throwing exception question....

2004-01-14 Thread Pitre, Russell
PROTECTED] Subject: Re: [JBoss-user] Throwing exception question You'll need: public class MaxNumberOfRequestsException extends Exception rather than extends RuntimeException or whatever you are using to avoid declaring it as being thrown. RuntimeExceptions and Errors do not need to be ha

Re: [JBoss-user] Throwing exception question....

2004-01-14 Thread Adrian Brock
You'll need: public class MaxNumberOfRequestsException extends Exception rather than extends RuntimeException or whatever you are using to avoid declaring it as being thrown. RuntimeExceptions and Errors do not need to be handled. Regards, Adrian On Wed, 2004-01-14 at 19:07, Pitre, Russell wro

[JBoss-user] Throwing exception question....

2004-01-14 Thread Pitre, Russell
Hello All-   Using: jboss3.2.3-tomcat   I have a class that will throw a user defined exception.   My method: public ArrayList getPersistableObjects (String className, String keys) { if(cachelessKeyValues.length() > MAX_NUMBER_OF_REQUESTS) { throw new MaxNumberOfRequestsException("