List of usage examples for javax.management MBeanRegistrationException MBeanRegistrationException
public MBeanRegistrationException(java.lang.Exception e, String message)
MBeanRegistrationException
that wraps the actual java.lang.Exception
with a detailed message. From source file:org.codice.ddf.admin.core.impl.SystemPropertiesAdmin.java
public void shutdown() throws MBeanRegistrationException { try {// w w w. jav a 2s. co m if (objectName != null && mbeanServer != null) { mbeanServer.unregisterMBean(objectName); } } catch (InstanceNotFoundException | MBeanRegistrationException e) { throw new MBeanRegistrationException(e, "Exception unregistering mbean"); } }