aicas logo Jamaica 3.4 release 8

java.lang.reflect
Class InvocationTargetException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.reflect.InvocationTargetException
All Implemented Interfaces:
Serializable

public class InvocationTargetException
extends Exception

An object of this exception signals that there was an exception that was not handled in a call of Method.invoke or Constructor.newInstance.

See Also:
Serialized Form

Constructor Summary
protected InvocationTargetException()
          Create new InvocationTargetException.
  InvocationTargetException(Throwable target)
          Create a new InvocationTargetException with the original Throwable that occurred in the target Method or Constructor.
  InvocationTargetException(Throwable target, String s)
          Create a new InvocationTargetException with the original Throwable that occurred in the target Method or Constructor and a message.
 
Method Summary
 Throwable getCause()
          Get the orginal Throwable that caused this Exception.
 Throwable getTargetException()
          Get the orginal Throwable that caused this Exception.
 
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

InvocationTargetException

protected InvocationTargetException()
Create new InvocationTargetException.


InvocationTargetException

public InvocationTargetException(Throwable target)
Create a new InvocationTargetException with the original Throwable that occurred in the target Method or Constructor.

Parameters:
target - the Throwable that caused this exception.

InvocationTargetException

public InvocationTargetException(Throwable target,
                                 String s)
Create a new InvocationTargetException with the original Throwable that occurred in the target Method or Constructor and a message.

Parameters:
target - the Throwable that caused this exception.
s - message describing the problem.
Method Detail

getTargetException

public Throwable getTargetException()
Get the orginal Throwable that caused this Exception.

Returns:
the causing Throwable.

getCause

public Throwable getCause()
Get the orginal Throwable that caused this Exception.

Overrides:
getCause in class Throwable
Returns:
the causing Throwable.
Since:
1.4

aicas logo Jamaica 3.4 release 8

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.