public class JMXProviderException extends IOException
例外被JMXConnectorFactory和JMXConnectorServerFactory当供应商存在所需的协议但不能用于某些原因。
JMXConnectorFactory.newJMXConnector(javax.management.remote.JMXServiceURL, java.util.Map<java.lang.String, ?>),
JMXConnectorServerFactory.newJMXConnectorServer(javax.management.remote.JMXServiceURL, java.util.Map<java.lang.String, ?>, javax.management.MBeanServer),
Serialized Form
| Constructor and Description |
|---|
JMXProviderException()
创建一个不含指定详细信息
JMXProviderException。
|
JMXProviderException(String message)
创建一个指定详细信息的
JMXProviderException。
|
JMXProviderException(String message, Throwable cause)
创建一个指定详细信息的
JMXProviderException和嵌套异常。
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
返回此错误或
null原因如果原因是不存在的或未知的。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic JMXProviderException()
创建一个不含指定详细信息JMXProviderException。
public JMXProviderException(String message)
创建一个指定详细信息的JMXProviderException。
message -详细信息
public Throwable getCause()
Throwable
null原因如果原因是不存在的或未知的。(原因是引起这个异常被抛出,
此实现返回的原因是通过一个需要Throwable建设者提供,或是与Throwable.initCause(Throwable)方法创建后。虽然它通常不需要重写此方法,但子类可以重写它以通过其他方式返回一个原因集。这是适合“遗产锁抛出“在连锁Throwable添加例外。请注意,它凌驾于任何的PrintStackTrace方法是不必要,所有这些调用getCause方法来确定一个Throwable的原因。
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.