public class RuntimeMBeanException extends JMRuntimeException
java.lang.RuntimeException抛出异常。
当MBean方法的调用引发运行时异常时,MBeanServer将构建此异常。
| Constructor and Description |
|---|
RuntimeMBeanException(RuntimeException e)
创建一个
RuntimeMBeanException包裹实际的
java.lang.RuntimeException 。
|
RuntimeMBeanException(RuntimeException e, String message)
创建一个
RuntimeMBeanException包裹实际的
java.lang.RuntimeException与详细的消息。
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
返回实际抛出的 RuntimeException 。
|
RuntimeException |
getTargetException()
返回实际投掷的 RuntimeException 。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RuntimeMBeanException(RuntimeException e)
RuntimeMBeanException包裹实际的
java.lang.RuntimeException 。
e - 包装异常。
public RuntimeMBeanException(RuntimeException e, String message)
RuntimeMBeanException包裹实际的
java.lang.RuntimeException与详细的消息。
e - 包装的例外。
message - 详细信息。
public RuntimeException getTargetException()
RuntimeException 。
RuntimeException 。
public Throwable getCause()
RuntimeException 。
getCause在
Throwable
RuntimeException 。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.