org.spicefactory.cinnamon.reflect
Class MethodInvocationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.spicefactory.cinnamon.reflect.MethodInvocationException
All Implemented Interfaces:
Serializable

public class MethodInvocationException
extends RuntimeException

Exception thrown when a MethodInvocation fails. This might either caused by the target method throwing an Exception or by failed conversions of method parameters or by any of the other Exceptions thrown by java.lang.reflect.Method.invoke.

Author:
Jens Halm
See Also:
Serialized Form

Constructor Summary
MethodInvocationException(String message)
          Creates a new MethodInvocationException.
MethodInvocationException(String message, Throwable cause)
          Creates a new MethodInvocationException.
 
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

MethodInvocationException

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

Parameters:
message - the error message
cause - the root cause

MethodInvocationException

public MethodInvocationException(String message)
Creates a new MethodInvocationException.

Parameters:
message - the error message