org.softsmithy.lib.lang.reflect
Class InvocationTargetRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.softsmithy.lib.lang.reflect.InvocationTargetRuntimeException
All Implemented Interfaces:
Serializable

public class InvocationTargetRuntimeException
extends RuntimeException

InvocationTargetRuntimeException is an unchecked exception that wraps an exception thrown by an invoked method or constructor.

See Also:
Method, Constructor, Serialized Form

Constructor Summary
protected InvocationTargetRuntimeException()
          Constructs an InvocationTargetException with null as the target exception.
  InvocationTargetRuntimeException(Throwable target)
          Constructs a InvocationTargetException with a target exception.
  InvocationTargetRuntimeException(Throwable target, String s)
          Constructs a InvocationTargetException with a target exception and a detail message.
 
Method Summary
 Throwable getCause()
          Returns the the cause of this exception (the thrown target exception, which may be null).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

InvocationTargetRuntimeException

protected InvocationTargetRuntimeException()
Constructs an InvocationTargetException with null as the target exception.


InvocationTargetRuntimeException

public InvocationTargetRuntimeException(Throwable target)
Constructs a InvocationTargetException with a target exception.

Parameters:
target - the target exception

InvocationTargetRuntimeException

public InvocationTargetRuntimeException(Throwable target,
                                        String s)
Constructs a InvocationTargetException with a target exception and a detail message.

Parameters:
target - the target exception
s - the detail message
Method Detail

getCause

public Throwable getCause()
Returns the the cause of this exception (the thrown target exception, which may be null).

Overrides:
getCause in class Throwable
Returns:
the cause of this exception.


Copyright © 2002-2011 SoftSmithy. All Rights Reserved.