jdk/src/share/classes/javax/management/InstanceNotFoundException.java
changeset 1156 bbc2d15aaf7a
parent 2 90ce3da70b43
child 1227 4546977d0d66
--- a/jdk/src/share/classes/javax/management/InstanceNotFoundException.java	Wed Sep 03 14:31:17 2008 +0200
+++ b/jdk/src/share/classes/javax/management/InstanceNotFoundException.java	Thu Sep 04 14:46:36 2008 +0200
@@ -51,4 +51,16 @@
     public InstanceNotFoundException(String message) {
         super(message);
     }
+
+    /**
+     * Constructor for the frequent case where the message is the ObjectName
+     * of the missing MBean.
+     *
+     * @param name the ObjectName of the missing MBean.
+     *
+     * @since 1.7
+     */
+    public InstanceNotFoundException(ObjectName name) {
+        this(name.toString());
+    }
 }