List of usage examples for javax.management MalformedObjectNameException getLocalizedMessage
public String getLocalizedMessage()
From source file:org.rhq.plugins.jbossas.JBossASServerComponent.java
private static String getCanonicalName(String objectName) { ObjectName on;/*from w w w . j a v a2s .co m*/ try { on = new ObjectName(objectName); } catch (MalformedObjectNameException e) { throw new IllegalStateException( "Malformed JMX object name: " + objectName + " - " + e.getLocalizedMessage()); } return on.getCanonicalName(); }