public class RuntimeMBeanException extends JMRuntimeException
java.lang.RuntimeException exception thrown.
This exception will be built by the MBeanServer when a call to an
MBean method throws a runtime exception.| Constructor | Description |
|---|---|
RuntimeMBeanException (RuntimeException e) |
Creates a
RuntimeMBeanException that wraps the actual java.lang.RuntimeException. |
RuntimeMBeanException (RuntimeException e,
String message) |
Creates a
RuntimeMBeanException that wraps the actual java.lang.RuntimeException with
a detailed message. |
| Modifier and Type | Method | Description |
|---|---|---|
Throwable |
getCause () |
Returns the actual
RuntimeException thrown. |
RuntimeException |
getTargetException () |
Returns the actual
RuntimeException thrown. |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString public RuntimeMBeanException(RuntimeException e)
RuntimeMBeanException that wraps the actual java.lang.RuntimeException.e - the wrapped exception.public RuntimeMBeanException(RuntimeException e, String message)
RuntimeMBeanException that wraps the actual java.lang.RuntimeException with
a detailed message.e - the wrapped exception.message - the detail message.public RuntimeException getTargetException()
RuntimeException thrown.RuntimeException.public Throwable getCause()
RuntimeException thrown.getCause in class 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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
Scripting on this page tracks web page traffic, but does not change the content in any way.