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