站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jmx API Documentation 英文版文档

ReflectionException (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档


javax.management
Class ReflectionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.management.JMException
              extended byjavax.management.ReflectionException
All Implemented Interfaces:
Serializable

public class ReflectionException
extends JMException

Thrown by the MBeanServer when an exception occurs using the java.lang.reflect package to invoke methods on MBeans.

Version:
$Revision: 1.10 $

Revisions:

20020313 Juha Lindfors:

  • Overriding toString() to print out the root exception

20020711 Adrian Brock:

  • Serialization
Author:
Juha Lindfors., Adrian Brock
See Also:
Serialized Form

Constructor Summary
ReflectionException(Exception e)
          Construct a new ReflectionException from a given exception.
ReflectionException(Exception e, String message)
          Construct a new ReflectionException from a given exception and message.
 
Method Summary
 Throwable getCause()
          Retrieves the wrapped exception.
 Exception getTargetException()
          Retrieves the wrapped exception.
 String toString()
          Returns a string representation of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReflectionException

public ReflectionException(Exception e)
Construct a new ReflectionException from a given exception.

Parameters:
e - the exception to wrap.

ReflectionException

public ReflectionException(Exception e,
                           String message)
Construct a new ReflectionException from a given exception and message.

Parameters:
e - the exception to wrap.
message - the specified message.
Method Detail

getTargetException

public Exception getTargetException()
Retrieves the wrapped exception.

Returns:
the wrapped exception.

getCause

public Throwable getCause()
Retrieves the wrapped exception.

Returns:
the wrapped exception.

toString

public String toString()
Returns a string representation of this exception. The returned string contains this exception name, message and a string representation of the target exception if it has been set.

Returns:
string representation of this exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.