- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.management.JMRuntimeException
-
- javax.management.RuntimeOperationsException
-
- All Implemented Interfaces:
-
Serializable
public class RuntimeOperationsException extends JMRuntimeException
表示在对MBean执行操作时在代理中抛出的运行时异常。 它包装了实际的java.lang.RuntimeException投掷。- 从以下版本开始:
- 1.5
- 另请参见:
- Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 RuntimeOperationsException(RuntimeException e)创建一个RuntimeOperationsException包裹实际的java.lang.RuntimeException。RuntimeOperationsException(RuntimeException e, String message)创建一个RuntimeOperationsException,其中包含实际的java.lang.RuntimeException与详细的消息。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 ThrowablegetCause()返回实际抛出的RuntimeException。RuntimeExceptiongetTargetException()返回实际抛出的RuntimeException。-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
构造方法详细信息
-
RuntimeOperationsException
public RuntimeOperationsException(RuntimeException e)
创建一个RuntimeOperationsException,包裹实际的java.lang.RuntimeException。- 参数
-
e- 包装异常。
-
RuntimeOperationsException
public RuntimeOperationsException(RuntimeException e, String message)
创建一个RuntimeOperationsException它包裹了实际的java.lang.RuntimeException与详细的消息。- 参数
-
e- 包装异常。 -
message- 详细信息。
-
-
方法详细信息
-
getTargetException
public RuntimeException getTargetException()
返回实际抛出的RuntimeException。- 结果
-
包裹
RuntimeException。
-
getCause
public Throwable getCause()
返回实际抛出的RuntimeException。- 重写:
-
getCause在Throwable - 结果
-
包裹
RuntimeException。
-
-