java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.management.JMException
javax.management.ReflectionException
public class ReflectionException
表示在使用 java.lang.reflect 类调用 MBean 上的方法时,MBean 服务器中抛出的异常。它可以“包装”抛出的实际 java.lang.Exception。
| 构造方法摘要 | |
|---|---|
ReflectionException(Exception e) 创建包装实际 java.lang.Exception 的 ReflectionException。 |
|
ReflectionException(Exception e, String message) 创建包装带有详细消息的实际 java.lang.Exception 的 ReflectionException。 |
|
| 方法摘要 | |
|---|---|
Throwable |
getCause() 返回抛出的实际 Exception。 |
Exception |
getTargetException() 返回抛出的实际 Exception。 |
| 从类 java.lang.Throwable 继承的方法 |
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ReflectionException(Exception e)
java.lang.Exception 的
ReflectionException。
e - 包装的异常。
public ReflectionException(Exception e, String message)
java.lang.Exception 的
ReflectionException。
e - 包装的异常。
message - 详细消息。
| 方法详细信息 |
|---|
public Exception getTargetException()
public Throwable getCause()