Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / lang / ClassNotFoundException.js
1 Clazz.load(["java.lang.Exception"],"java.lang.ClassNotFoundException",null,function(){
2 c$=Clazz.decorateAsClass(function(){
3 this.ex=null;
4 Clazz.instantialize(this,arguments);
5 },java.lang,"ClassNotFoundException",Exception);
6 Clazz.makeConstructor(c$,
7 function(){
8 Clazz.superConstructor(this,ClassNotFoundException,[Clazz.castNullAs("Throwable")]);
9 });
10 Clazz.makeConstructor(c$,
11 function(detailMessage){
12 Clazz.superConstructor(this,ClassNotFoundException,[detailMessage,null]);
13 },"~S");
14 Clazz.makeConstructor(c$,
15 function(detailMessage,exception){
16 Clazz.superConstructor(this,ClassNotFoundException,[detailMessage]);
17 this.ex=exception;
18 },"~S,Throwable");
19 Clazz.defineMethod(c$,"getException",
20 function(){
21 return this.ex;
22 });
23 Clazz.overrideMethod(c$,"getCause",
24 function(){
25 return this.ex;
26 });
27 });