com.gargoylesoftware.htmlunit
Class ObjectInstantiationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.gargoylesoftware.htmlunit.ObjectInstantiationException
All Implemented Interfaces:
Serializable

public class ObjectInstantiationException
extends RuntimeException

Thrown if an object could not be instantiated for some reason.

Version:
$Revision: 6204 $
Author:
Mike Bowler, Ahmed Ashour
See Also:
Serialized Form

Constructor Summary
ObjectInstantiationException(String message, Throwable cause)
          Creates a new instance.
 
Method Summary
 Throwable getCauseException()
          Deprecated. as of 2.9, please use Throwable.getCause() instead
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectInstantiationException

public ObjectInstantiationException(String message,
                                    Throwable cause)
Creates a new instance.

Parameters:
message - a message explaining the failure
cause - the exception that was thrown
Method Detail

getCauseException

@Deprecated
public Throwable getCauseException()
Deprecated. as of 2.9, please use Throwable.getCause() instead

Returns the exception that had been thrown during instantiation of the object.

Returns:
the cause exception


Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.