Exception handling 2005-10-23 - By SUBSCRIBE EJB-INTEREST anonymous
Back Hi, I have an class derived from Exception and have one constructor,which takes only a String as parameter. In my application, I just use the below line to throw the exception.Is this correct?Since, exception object is not passed to the constructor, will I lose any stacktrace information?
throw new DataInvalidException("Datais invalid");
Thanks in advance,
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|