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