Name
ClassNotFoundException
Synopsis
Signals
that a class to be loaded cannot be found. If an exception of this
type was caused by some underlying exception, you can query that
lower-level exeption with getException( )
or with
the newer, more general getCause( )
.
Figure 10-14. java.lang.ClassNotFoundException
public class ClassNotFoundException extends Exception { // Public Constructors public ClassNotFoundException( ); public ClassNotFoundException(String s); 1.2 public ClassNotFoundException(String s, Throwable ex); // Public Instance Methods 1.2 public Throwable getException( ); default:null // Public Methods Overriding Throwable 1.4 public Throwable getCause( ); default:null }
Thrown By
Too many methods to list.
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.