org.springsource.loaded.ri
Class Exceptions

java.lang.Object
  extended by org.springsource.loaded.ri.Exceptions

public class Exceptions
extends java.lang.Object

Utility class to create correctly formatted Exceptions and Errors for different kinds of error conditions.

Since:
0.5.0

Constructor Summary
Exceptions()
           
 
Method Summary
static java.lang.IllegalArgumentException illegalGetFieldType(java.lang.reflect.Field field, java.lang.Class<?> returnType)
           
static java.lang.InstantiationException instantiation(java.lang.Class<?> clazz)
           
static java.lang.NoSuchMethodError noSuchConstructorError(java.lang.reflect.Constructor<?> c)
           
static java.lang.NoSuchMethodException noSuchConstructorException(java.lang.Class<?> clazz, java.lang.Class<?>[] params)
           
static java.lang.NoSuchFieldError noSuchFieldError(java.lang.reflect.Field field)
           
static java.lang.NoSuchMethodError noSuchMethodError(java.lang.reflect.Method method)
           
static java.lang.NoSuchMethodError noSuchMethodError(java.lang.String dottedClassName, java.lang.String methodName, java.lang.String methodDescriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exceptions

public Exceptions()
Method Detail

noSuchFieldError

public static java.lang.NoSuchFieldError noSuchFieldError(java.lang.reflect.Field field)

noSuchMethodError

public static java.lang.NoSuchMethodError noSuchMethodError(java.lang.reflect.Method method)

noSuchMethodError

public static java.lang.NoSuchMethodError noSuchMethodError(java.lang.String dottedClassName,
                                                            java.lang.String methodName,
                                                            java.lang.String methodDescriptor)

illegalGetFieldType

public static java.lang.IllegalArgumentException illegalGetFieldType(java.lang.reflect.Field field,
                                                                     java.lang.Class<?> returnType)

noSuchConstructorException

public static java.lang.NoSuchMethodException noSuchConstructorException(java.lang.Class<?> clazz,
                                                                         java.lang.Class<?>[] params)

noSuchConstructorError

public static java.lang.NoSuchMethodError noSuchConstructorError(java.lang.reflect.Constructor<?> c)

instantiation

public static java.lang.InstantiationException instantiation(java.lang.Class<?> clazz)