JavaTM 2 Platform
Standard Ed. 6

javax.management
类 RuntimeErrorException

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

public class RuntimeErrorException
extends JMRuntimeException

当代理中发生 java.lang.Error 时,必须捕获它并作为 RuntimeErrorException 重新抛出。

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

构造方法摘要
RuntimeErrorException(Error e)
          默认的构造方法。
RuntimeErrorException(Error e, String message)
          允许指定特定错误消息的构造方法。
 
方法摘要
 Throwable getCause()
          返回抛出的实际 Error
 Error getTargetError()
          返回抛出的实际 Error
 
从类 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
 

构造方法详细信息

RuntimeErrorException

public RuntimeErrorException(Error e)
默认的构造方法。

参数:
e - 包装的错误。

RuntimeErrorException

public RuntimeErrorException(Error e,
                             String message)
允许指定特定错误消息的构造方法。

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

getTargetError

public Error getTargetError()
返回抛出的实际 Error

返回:
包装的 Error

getCause

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

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

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

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