|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception javax.management.JMException javax.management.MBeanException
public class MBeanException
Represents "user defined" exceptions thrown by MBean methods in the agent. It "wraps" the actual "user defined" exception thrown. This exception will be built by the MBeanServer when a call to an MBean method results in an unknown exception.
Constructor Summary | |
---|---|
MBeanException(Exception e)
Creates an MBeanException that wraps the actual java.lang.Exception . |
|
MBeanException(Exception e,
String message)
Creates an MBeanException that wraps the actual java.lang.Exception with
a detail message. |
Method Summary | |
---|---|
Throwable |
getCause()
Return the actual Exception thrown. |
Exception |
getTargetException()
Return the actual Exception thrown. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MBeanException(Exception e)
MBeanException
that wraps the actual java.lang.Exception
.
e
- the wrapped exception.public MBeanException(Exception e, String message)
MBeanException
that wraps the actual java.lang.Exception
with
a detail message.
e
- the wrapped exception.message
- the detail message.Method Detail |
---|
public Exception getTargetException()
Exception
thrown.
public Throwable getCause()
Exception
thrown.
getCause
in class Throwable
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.