info.aduna.lang.reflect
Class TypeInstantiationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by info.aduna.lang.reflect.TypeInstantiationException
All Implemented Interfaces:
Serializable

public class TypeInstantiationException
extends Exception

Thrown by KeyedObjectFactory to indicate that it failed to create an instance of a certain type. The cause of the error is wrapped inside this exception.

See Also:
Serialized Form

Constructor Summary
TypeInstantiationException(String msg, Throwable cause)
          Creates a new TypeInstantiationException wrapping another exception.
TypeInstantiationException(Throwable cause)
          Creates a new TypeInstantiationException.
 
Method Summary
 
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

TypeInstantiationException

public TypeInstantiationException(Throwable cause)
Creates a new TypeInstantiationException.

Parameters:
cause - The cause of the exception.

TypeInstantiationException

public TypeInstantiationException(String msg,
                                  Throwable cause)
Creates a new TypeInstantiationException wrapping another exception.

Parameters:
msg - An error message.
cause - The cause of the exception.


Copyright © 1997-2008 Aduna. All Rights Reserved.