Updated samples based on latest version of code and latest java version.
[vimdoclet.git] / sample / java.lang.reflect.InvocationTargetException.txt
blob00b41dc80e74a740618453fa69130f487c3ef3c0
1 *java.lang.reflect.InvocationTargetException* *InvocationTargetException* Invoca
3 public class InvocationTargetException
4   extends    |java.lang.Exception|
6 |java.lang.reflect.InvocationTargetException_Description|
7 |java.lang.reflect.InvocationTargetException_Fields|
8 |java.lang.reflect.InvocationTargetException_Constructors|
9 |java.lang.reflect.InvocationTargetException_Methods|
11 ================================================================================
13 *java.lang.reflect.InvocationTargetException_Constructors*
14 |java.lang.reflect.InvocationTargetException()|Constructs an InvocationTargetEx
15 |java.lang.reflect.InvocationTargetException(Throwable)|Constructs a Invocation
16 |java.lang.reflect.InvocationTargetException(Throwable,String)|Constructs a Inv
18 *java.lang.reflect.InvocationTargetException_Methods*
19 |java.lang.reflect.InvocationTargetException.getCause()|Returns the cause of th
20 |java.lang.reflect.InvocationTargetException.getTargetException()|Get the throw
22 *java.lang.reflect.InvocationTargetException_Description*
24 InvocationTargetException is a checked exception that wraps an exception thrown 
25 by an invoked method or constructor. 
27 As of release 1.4, this exception has been retrofitted to conform to the 
28 general purpose exception-chaining mechanism. The "target exception" that is 
29 provided at construction time and accessed via the 
30 (|java.lang.reflect.InvocationTargetException|) method is now known as the 
31 cause, and may be accessed via the (|java.lang.Throwable|) method, as well as 
32 the aforementioned "legacy method." 
36 *java.lang.reflect.InvocationTargetException()*
38 protected InvocationTargetException()
40 Constructs an InvocationTargetException with null as the target exception. 
43 *java.lang.reflect.InvocationTargetException(Throwable)*
45 public InvocationTargetException(java.lang.Throwable target)
47 Constructs a InvocationTargetException with a target exception. 
49     target - the target exception 
51 *java.lang.reflect.InvocationTargetException(Throwable,String)*
53 public InvocationTargetException(
54   java.lang.Throwable target,
55   java.lang.String s)
57 Constructs a InvocationTargetException with a target exception and a detail 
58 message. 
60     target - the target exception 
61     s - the detail message 
63 *java.lang.reflect.InvocationTargetException.getCause()*
65 public |java.lang.Throwable| getCause()
67 Returns the cause of this exception (the thrown target exception, which may be 
68 null). 
72     Returns: the cause of this exception. 
74 *java.lang.reflect.InvocationTargetException.getTargetException()*
76 public |java.lang.Throwable| getTargetException()
78 Get the thrown target exception. 
80 This method predates the general-purpose exception chaining facility. The 
81 (|java.lang.Throwable|) method is now the preferred means of obtaining this 
82 information. 
86     Returns: the thrown target exception (cause of this exception).