javax.management
Class ReflectionException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--javax.management.JMException
|
+--javax.management.ReflectionException
- All Implemented Interfaces:
- java.io.Serializable
- public class ReflectionException
- extends JMException
This class represents exceptions thrown in the MBeanServer when using the
java.lang.reflect classes to invoke methods on MBeans. It "wraps" the actual
java.lang.Exception thrown.
- See Also:
- Serialized Form
Constructor Summary |
ReflectionException(java.lang.Exception e)
Creates a ReflectionException that wraps the actual
java.lang.Exception . |
ReflectionException(java.lang.Exception e,
java.lang.String msg)
Creates a ReflectionException that wraps the actual
java.lang.Exception with a detail message. |
Method Summary |
java.lang.Exception |
getTargetException()
Returns the actual java.lang.Exception thrown |
void |
printStackTrace()
Overrides the printStackTrace method in java.lang.Throwable |
java.lang.String |
toString()
Overrides the toString method in java.lang.Object |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ReflectionException
public ReflectionException(java.lang.Exception e)
- Creates a
ReflectionException
that wraps the actual
java.lang.Exception
.
- Parameters:
e
- Exception to be wraped by ReflectionException
ReflectionException
public ReflectionException(java.lang.Exception e,
java.lang.String msg)
- Creates a
ReflectionException
that wraps the actual
java.lang.Exception
with a detail message.
- Parameters:
e
- Exception to be wraped by ReflectionExceptionmsg
- Detail message
getTargetException
public java.lang.Exception getTargetException()
- Returns the actual java.lang.Exception thrown
- Returns:
- This returns the actual java.lang.Exception thrown
printStackTrace
public void printStackTrace()
- Overrides the printStackTrace method in java.lang.Throwable
- Overrides:
printStackTrace
in class java.lang.Throwable
toString
public java.lang.String toString()
- Overrides the toString method in java.lang.Object
- Overrides:
toString
in class java.lang.Throwable
Copyright ©2003 XMOJO.org. All Rights Reserved.