Oh :) I thought it was more complicated than that.

Thanks.

-----Original Message-----
From: Lyndon Tiu [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 14, 2004 1:56 PM
To: [EMAIL PROTECTED]
Subject: Re: data validation

Jairam, Roopnaraine wrote:

>How do u throw a custom exception?
>
>  
>
Throwing Exceptions is very basic Java. Don't tell me you don't know 
what throwing Exceptions are!

Custom Exceptions is a Java class that you write that inherits from the 
Exception class or the Throwable class.

On some form of error, you instantiate your Custom Exception class, put 
some debug message in it and throw it up the stack.

--
Lyndon Tiu


Reply via email to