1 19 20 package org.netbeans.modules.db.explorer; 21 22 import java.text.MessageFormat ; 23 24 import org.openide.util.NbBundle; 25 26 31 public class CommandUnachievableException extends Exception { 32 33 34 private String cmd; 35 36 39 public CommandUnachievableException (String command) { 40 super (); 41 cmd = command; 42 } 43 44 48 public CommandUnachievableException (String command, String desc) { 49 super (desc); 50 cmd = command; 51 } 52 53 54 public String getCommand() { 55 return cmd; 56 } 57 58 public String toString() { 59 String message = MessageFormat.format( 60 NbBundle.getBundle("org.netbeans.modules.db.resources.Bundle"). 61 getString("ERR_UnableToPerformCommand"), new String [] {cmd, getMessage()}); 63 return message; 64 } 65 } 66 | Popular Tags |