1 *java.lang.ClassNotFoundException* *ClassNotFoundException* Thrown when an appli
3 public class ClassNotFoundException
4 extends |java.lang.Exception|
6 |java.lang.ClassNotFoundException_Description|
7 |java.lang.ClassNotFoundException_Fields|
8 |java.lang.ClassNotFoundException_Constructors|
9 |java.lang.ClassNotFoundException_Methods|
11 ================================================================================
13 *java.lang.ClassNotFoundException_Constructors*
14 |java.lang.ClassNotFoundException()|Constructs a ClassNotFoundException with no
15 |java.lang.ClassNotFoundException(String)|Constructs a ClassNotFoundException w
16 |java.lang.ClassNotFoundException(String,Throwable)|Constructs a ClassNotFoundE
18 *java.lang.ClassNotFoundException_Methods*
19 |java.lang.ClassNotFoundException.getCause()|Returns the cause of this exceptio
20 |java.lang.ClassNotFoundException.getException()|Returns the exception that was
22 *java.lang.ClassNotFoundException_Description*
24 Thrown when an application tries to load in a class through its string name
27 The forName method in class Class. The findSystemClass method in class
28 ClassLoader . The loadClass method in class ClassLoader.
30 but no definition for the class with the specified name could be found.
32 As of release 1.4, this exception has been retrofitted to conform to the
33 general purpose exception-chaining mechanism. The "optional exception that was
34 raised while loading the class" that may be provided at construction time and
35 accessed via the (|java.lang.ClassNotFoundException|) method is now known as
36 the cause, and may be accessed via the (|java.lang.Throwable|) method, as well
37 as the aforementioned "legacy method."
41 *java.lang.ClassNotFoundException()*
43 public ClassNotFoundException()
45 Constructs a ClassNotFoundException with no detail message.
48 *java.lang.ClassNotFoundException(String)*
50 public ClassNotFoundException(java.lang.String s)
52 Constructs a ClassNotFoundException with the specified detail message.
54 s - the detail message.
56 *java.lang.ClassNotFoundException(String,Throwable)*
58 public ClassNotFoundException(
60 java.lang.Throwable ex)
62 Constructs a ClassNotFoundException with the specified detail message and
63 optional exception that was raised while loading the class.
65 s - the detail message
66 ex - the exception that was raised while loading the class
68 *java.lang.ClassNotFoundException.getCause()*
70 public |java.lang.Throwable| getCause()
72 Returns the cause of this exception (the exception that was raised if an error
73 occurred while attempting to load the class; otherwise null).
77 Returns: the cause of this exception.
79 *java.lang.ClassNotFoundException.getException()*
81 public |java.lang.Throwable| getException()
83 Returns the exception that was raised if an error occurred while attempting to
84 load the class. Otherwise, returns null.
86 This method predates the general-purpose exception chaining facility. The
87 (|java.lang.Throwable|) method is now the preferred means of obtaining this
92 Returns: the Exception that was raised while loading a class