JavaTM 2 Platform
Standard Ed. 6

javax.management
类 RuntimeMBeanException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.lang.RuntimeException
              继承者 javax.management.JMRuntimeException
                  继承者 javax.management.RuntimeMBeanException
所有已实现的接口:
Serializable

public class RuntimeMBeanException
extends JMRuntimeException

表示由代理中的 MBean 方法抛出的运行时异常。它“包装”抛出的实际 java.lang.RuntimeException 异常。此异常将由 MBeanServer 在调用 MBean 方法抛出运行时异常时构建。

从以下版本开始:
1.5
另请参见:
序列化表格

构造方法摘要
RuntimeMBeanException(RuntimeException e)
          创建包装实际 java.lang.RuntimeExceptionRuntimeMBeanException
RuntimeMBeanException(RuntimeException e, String message)
          创建带有详细信息的实际 java.lang.RuntimeExceptionRuntimeMBeanException
 
方法摘要
 Throwable getCause()
          返回抛出的实际 RuntimeException
 RuntimeException getTargetException()
          返回抛出的实际 RuntimeException
 
从类 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
 

构造方法详细信息

RuntimeMBeanException

public RuntimeMBeanException(RuntimeException e)
创建包装实际 java.lang.RuntimeExceptionRuntimeMBeanException

参数:
e - 包装的异常。

RuntimeMBeanException

public RuntimeMBeanException(RuntimeException e,
                             String message)
创建带有详细信息的实际 java.lang.RuntimeExceptionRuntimeMBeanException

参数:
e - 包装的异常。
message - 详细消息。
方法详细信息

getTargetException

public RuntimeException getTargetException()
返回抛出的实际 RuntimeException

返回:
包装的 RuntimeException

getCause

public Throwable getCause()
返回抛出的实际 RuntimeException

覆盖:
Throwable 中的 getCause
返回:
包装的 RuntimeException

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only