javax.management
Class MBeanRegistrationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.management.JMException
javax.management.MBeanException
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
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.