JAL-1807
[jalview.git] / site / j2s / java / util / FormatFlagsConversionMismatchException.js
diff --git a/site/j2s/java/util/FormatFlagsConversionMismatchException.js b/site/j2s/java/util/FormatFlagsConversionMismatchException.js
new file mode 100644 (file)
index 0000000..0431c86
--- /dev/null
@@ -0,0 +1,27 @@
+Clazz.load(["java.util.IllegalFormatException"],"java.util.FormatFlagsConversionMismatchException",["java.lang.NullPointerException"],function(){
+c$=Clazz.decorateAsClass(function(){
+this.f=null;
+this.c=0;
+Clazz.instantialize(this,arguments);
+},java.util,"FormatFlagsConversionMismatchException",java.util.IllegalFormatException,java.io.Serializable);
+Clazz.makeConstructor(c$,
+function(f,c){
+Clazz.superConstructor(this,java.util.FormatFlagsConversionMismatchException,[]);
+if(null==f){
+throw new NullPointerException();
+}this.f=f;
+this.c=c;
+},"~S,~N");
+Clazz.defineMethod(c$,"getFlags",
+function(){
+return this.f;
+});
+Clazz.defineMethod(c$,"getConversion",
+function(){
+return this.c;
+});
+Clazz.overrideMethod(c$,"getMessage",
+function(){
+return"Mismatched Convertor ="+this.c+", Flags= "+this.f;
+});
+});