org.spicefactory.lib.reflect.util
Class ObjectInstantiationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.spicefactory.lib.reflect.util.ObjectInstantiationException
- All Implemented Interfaces:
- Serializable
public class ObjectInstantiationException
- extends RuntimeException
Exception thrown when reflectively creating a new instance fails.
- Author:
- Jens Halm
- See Also:
- Serialized Form
|
Method Summary |
Class<?> |
getType()
Returns the Class for which instantiation failed. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ObjectInstantiationException
public ObjectInstantiationException(Class<?> type,
Throwable cause)
- Creates a new ObjectInstantiationException
- Parameters:
type - the class that could not be instantiatedcause - the root cause
ObjectInstantiationException
public ObjectInstantiationException(Class<?> type)
- Creates a new ObjectInstantiationException
- Parameters:
type - the class that could not be instantiated
getType
public Class<?> getType()
- Returns the Class for which instantiation failed.
- Returns:
- the Class for which instantiation failed