The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Try this !!

Posted by BMVarun on May 25, 2001 at 8:23 AM

Hi,

Define a "throws" clause in the definition of that constructor.
like:

public xxx
{

public xxx() throws YuorException
{
throw new YourException();
}
}


> I'm trying to determine how to pass information from a java constructor that has failed to an exception handler. Does anybody have any idea how to go about doing this? thanks for your help.






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us