Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

java::lang::reflect::InvocationTargetException Class Reference

InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor. More...

#include <java_lang_reflect_InvocationTargetException.h>

Inheritance diagram for java::lang::reflect::InvocationTargetException:

Inheritance graph
[legend]
Collaboration diagram for java::lang::reflect::InvocationTargetException:

Collaboration graph
[legend]
List of all members.

Public Types

enum  {
  xmogDefaultFlags = xmog_base::GLOBAL, xmogMajorVersion = 3, xmogMinorVersion = 2, xmogPatchVersion = 9,
  xmogBuildNumber = 2047
}
typedef ::xmog_java_array_template<
::java::lang::reflect::InvocationTargetException
array1D
typedef ::xmog_java_array_template<
::xmog_java_array_template<
::java::lang::reflect::InvocationTargetException > > 
array2D

Public Member Functions

virtual ::java::lang::Throwable getCause (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Returns the the cause of this exception (the thrown target exception, which may be null).
virtual ::java::lang::Throwable getTargetException (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Get the thrown target exception.
 InvocationTargetException (const ::java::lang::Throwable &target, const ::java::lang::String &s,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Constructs a InvocationTargetException with a target exception and a detail message.
 InvocationTargetException (::xmog_dummy _use_java_ctor,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Constructs an InvocationTargetException with null as the target exception.
 InvocationTargetException (const ::java::lang::Throwable &target,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Constructs a InvocationTargetException with a target exception.

Detailed Description

InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor.

As of release 1.4, this exception has been retrofitted to conform to the general purpose exception-chaining mechanism. The "target exception" that is provided at construction time and accessed via the method is now known as the cause, and may be accessed via the method, as well as the aforementioned "legacy method."


Constructor & Destructor Documentation

java::lang::reflect::InvocationTargetException::InvocationTargetException const ::java::lang::Throwable target,
::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

Constructs a InvocationTargetException with a target exception.

Parameters:
target the target exception
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.

java::lang::reflect::InvocationTargetException::InvocationTargetException ::xmog_dummy  _use_java_ctor,
::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

Constructs an InvocationTargetException with null as the target exception.

Parameters:
_use_java_ctor indicates that you want to delegate to a Java constructor whose natural proxy conflicts with a C++ requirement.
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.

java::lang::reflect::InvocationTargetException::InvocationTargetException const ::java::lang::Throwable target,
const ::java::lang::String s,
::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

Constructs a InvocationTargetException with a target exception and a detail message.

Parameters:
target the target exception
s the detail message
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.


Member Function Documentation

virtual ::java::lang::Throwable java::lang::reflect::InvocationTargetException::getCause ::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

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

Parameters:
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.
Returns:
the cause of this exception.

Reimplemented from java::lang::Throwable.

virtual ::java::lang::Throwable java::lang::reflect::InvocationTargetException::getTargetException ::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

Get the thrown target exception.

This method predates the general-purpose exception chaining facility. The method is now the preferred means of obtaining this information.

Parameters:
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.
Returns:
the thrown target exception (cause of this exception).


The documentation for this class was generated from the following file:
Generated on Fri Jun 16 10:19:37 2006 for JMS Courier for C++ by  doxygen 1.4.1