Top Description Fields Constructors Methods
javax.management

public Class ReflectionException

extends JMException
Class Inheritance

Represents exceptions thrown in the MBean server when using the java.lang.reflect classes to invoke methods on MBeans. It "wraps" the actual java.lang.Exception thrown.
Since
1.5

Field Summary

Modifier and TypeField and Description
private Exception
private static final long

Constructor Summary

AccessConstructor and Description
public
ReflectionException(Exception
the wrapped exception.
e
)

Creates a ReflectionException that wraps the actual java.lang.Exception.

public
ReflectionException(Exception
the wrapped exception.
e
,
String
the detail message.
message
)

Creates a ReflectionException that wraps the actual java.lang.Exception with a detail message.

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

the wrapped Exception.
getCause
()

Overrides java.lang.Throwable.getCause.

Returns the actual Exception thrown.

public Exception

Returns:

the wrapped Exception.
getTargetException
()

Returns the actual Exception thrown.

Field Detail

exceptionback to summary
private Exception exception
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.management.JMException.serialVersionUID.

Constructor Detail

ReflectionExceptionback to summary
public ReflectionException(Exception e)

Creates a ReflectionException that wraps the actual java.lang.Exception.

Parameters
e:Exception

the wrapped exception.

ReflectionExceptionback to summary
public ReflectionException(Exception e, String message)

Creates a ReflectionException that wraps the actual java.lang.Exception with a detail message.

Parameters
e:Exception

the wrapped exception.

message:String

the detail message.

Method Detail

getCauseback to summary
public Throwable getCause()

Overrides java.lang.Throwable.getCause.

Returns the actual Exception thrown.

Returns:Throwable

the wrapped Exception.

getTargetExceptionback to summary
public Exception getTargetException()

Returns the actual Exception thrown.

Returns:Exception

the wrapped Exception.