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