net.sf.josceleton.commons.reflect
Class DynamicInstantiationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.josceleton.commons.exception.JosceletonException
                  extended by net.sf.josceleton.commons.reflect.DynamicInstantiationException
All Implemented Interfaces:
Serializable

public class DynamicInstantiationException
extends JosceletonException

Since:
0.1
See Also:
Serialized Form

Constructor Summary
protected DynamicInstantiationException(String message, ClassAdapter<?> clazz, Object[] arguments, Throwable cause)
           
 
Method Summary
 Object[] getArguments()
           
 ClassAdapter<?> getClazz()
           
static DynamicInstantiationException newForInstantiation(ClassAdapter<?> clazz, Object[] arguments, Throwable cause)
           
static DynamicInstantiationException newForNotFoundConstructor(ClassAdapter<?> clazz, Object[] arguments)
           
 
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

DynamicInstantiationException

protected DynamicInstantiationException(String message,
                                        ClassAdapter<?> clazz,
                                        Object[] arguments,
                                        Throwable cause)
Method Detail

newForInstantiation

public static DynamicInstantiationException newForInstantiation(ClassAdapter<?> clazz,
                                                                Object[] arguments,
                                                                Throwable cause)
Parameters:
clazz - tried, but failed, to instantiate.
Since:
0.1

newForNotFoundConstructor

public static DynamicInstantiationException newForNotFoundConstructor(ClassAdapter<?> clazz,
                                                                      Object[] arguments)
Parameters:
clazz - which did not have a proper constructor for given arguments.
Since:
0.1

getClazz

public final ClassAdapter<?> getClazz()
Since:
0.1

getArguments

public final Object[] getArguments()
Since:
0.1


Copyright © 2011 Josceleton. All Rights Reserved.