1 19 20 package org.netbeans.modules.j2ee.sun.dd.api; 21 22 import java.text.MessageFormat ; 23 import java.util.ResourceBundle ; 24 25 26 31 public class VersionNotSupportedException extends java.lang.Exception { 32 33 private static String exceptionMsg = 34 ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/dd/api/Bundle").getString("MSG_versionNotSupported"); 36 private String version; 37 38 44 public VersionNotSupportedException(String version, String message) { 45 super(message); 46 this.version=version; 47 } 48 49 54 public VersionNotSupportedException(String version) { 55 super(MessageFormat.format(exceptionMsg, new Object [] { version } )); 56 this.version=version; 57 } 58 59 64 public String getVersion() { 65 return version; 66 } 67 } 68 | Popular Tags |