javax.management

Class MBeanRegistrationException

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 {@link MBeanRegistrationException}. Calling {@link getTargetException()} will return the wrapped exception.

Since: 1.5

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.

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.