f88ce39549779860b594f1e67b2e762db307f627
[jalviewjs.git] / site / j2s / java / util / IllegalFormatConversionException.js
1 Clazz.load(["java.util.IllegalFormatException"],"java.util.IllegalFormatConversionException",["java.lang.NullPointerException"],function(){
2 c$=Clazz.decorateAsClass(function(){
3 this.c=0;
4 this.arg=null;
5 Clazz.instantialize(this,arguments);
6 },java.util,"IllegalFormatConversionException",java.util.IllegalFormatException,java.io.Serializable);
7 Clazz.makeConstructor(c$,
8 function(c,arg){
9 Clazz.superConstructor(this,java.util.IllegalFormatConversionException,[]);
10 this.c=c;
11 if(arg==null){
12 throw new NullPointerException();
13 }this.arg=arg;
14 },"~N,Class");
15 Clazz.defineMethod(c$,"getArgumentClass",
16 function(){
17 return this.arg;
18 });
19 Clazz.defineMethod(c$,"getConversion",
20 function(){
21 return this.c;
22 });
23 Clazz.overrideMethod(c$,"getMessage",
24 function(){
25 return""+this.c+" is incompatible with "+this.arg.getName();
26 });
27 });