javax.management
Class MBeanRegistrationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.management.JMException
              extended by javax.management.MBeanException
                  extended by javax.management.MBeanRegistrationException
All Implemented Interfaces:
Serializable

public class MBeanRegistrationException
extends MBeanException

Represents an arbitrary exception thrown during registration of a management bean. When registering a bean causes an exception to be thrown, the resulting exception is wrapped inside an MBeanRegistrationException. Calling MBeanException.getTargetException() will return the wrapped exception.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
MBeanRegistrationException(Exception e)
          Constructs a new MBeanRegistrationException wrapping the specified exception.
MBeanRegistrationException(Exception e, String message)
          Constructs a new MBeanRegistrationException wrapping the specified exception and using the supplied message.
 
Method Summary
 
Methods inherited from class javax.management.MBeanException
getCause, getTargetException
 
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

MBeanRegistrationException

public MBeanRegistrationException(Exception e)
Constructs a new MBeanRegistrationException wrapping the specified exception.

Parameters:
e - the exception to be wrapped.

MBeanRegistrationException

public MBeanRegistrationException(Exception e,
                                  String message)
Constructs a new MBeanRegistrationException wrapping the specified exception and using the supplied message.

Parameters:
e - the exception to be wrapped.
message - the error message to give to the user.