com.sun.jdmk
Class ProxyMBeanInstantiationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.management.JMException
              extended by com.sun.jdmk.ManagerException
                  extended by com.sun.jdmk.ProxyMBeanInstantiationException
All Implemented Interfaces:
java.io.Serializable

Deprecated. MBean proxies should be generated using MBeanServerInvocationHandler.newProxyInstance. This exception class may be removed in a future version of Java DMK.

public class ProxyMBeanInstantiationException
extends ManagerException

Exception raised by the ProxyFactory when a problem occurs with the instantiation of the ProxyMBean.

See Also:
Serialized Form

Constructor Summary
ProxyMBeanInstantiationException(java.lang.Exception e)
          Deprecated. Creates a ProxyMBeanInstantiationException that wraps the actual Exception.
ProxyMBeanInstantiationException(java.lang.Exception e, java.lang.String message)
          Deprecated. Creates a ProxyMBeanInstantiationException that wraps the actual Exception with a detail message.
 
Method Summary
 java.lang.Throwable getCause()
          Deprecated. Returns the actual Throwable thrown.
 java.lang.Exception getTargetException()
          Deprecated. Use getCause() instead. Returns 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

ProxyMBeanInstantiationException

public ProxyMBeanInstantiationException(java.lang.Exception e)
Deprecated. 
Creates a ProxyMBeanInstantiationException that wraps the actual Exception.


ProxyMBeanInstantiationException

public ProxyMBeanInstantiationException(java.lang.Exception e,
                                        java.lang.String message)
Deprecated. 
Creates a ProxyMBeanInstantiationException that wraps the actual Exception with a detail message.

Method Detail

getTargetException

public java.lang.Exception getTargetException()
Deprecated. Use getCause() instead. Returns the actual Exception thrown.


getCause

public java.lang.Throwable getCause()
Deprecated. 
Returns the actual Throwable thrown.

Overrides:
getCause in class java.lang.Throwable

Open Source build 01-ea
opendmk-1.0-b01-ea 2010.10.20_19:39:55_UTC

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.