public class

ReflectionException

extends JMException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ javax.management.JMException
         ↳ javax.management.ReflectionException

Class Overview

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.

Summary

Public Constructors
ReflectionException(Exception e)
Creates a ReflectionException that wraps the actual java.lang.Exception.
ReflectionException(Exception e, String message)
Creates a ReflectionException that wraps the actual java.lang.Exception with a detail message.
Public Methods
Throwable getCause()
Returns the actual Exception thrown.
Exception getTargetException()
Returns the actual Exception thrown.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public ReflectionException (Exception e)

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

Parameters
e the wrapped exception.

public ReflectionException (Exception e, String message)

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

Parameters
e the wrapped exception.
message the detail message.

Public Methods

public Throwable getCause ()

Returns the actual Exception thrown.

Returns

public Exception getTargetException ()

Returns the actual Exception thrown.

Returns