< prev index next >

src/java.base/share/classes/java/lang/ClassNotFoundException.java

Print this page

        

*** 96,106 **** this.ex = ex; } /** * Returns the exception that was raised if an error occurred while ! * attempting to load the class. Otherwise, returns <tt>null</tt>. * * <p>This method predates the general-purpose exception chaining facility. * The {@link Throwable#getCause()} method is now the preferred means of * obtaining this information. * --- 96,106 ---- this.ex = ex; } /** * Returns the exception that was raised if an error occurred while ! * attempting to load the class. Otherwise, returns {@code null}. * * <p>This method predates the general-purpose exception chaining facility. * The {@link Throwable#getCause()} method is now the preferred means of * obtaining this information. *
*** 112,122 **** } /** * Returns the cause of this exception (the exception that was raised * if an error occurred while attempting to load the class; otherwise ! * <tt>null</tt>). * * @return the cause of this exception. * @since 1.4 */ public Throwable getCause() { --- 112,122 ---- } /** * Returns the cause of this exception (the exception that was raised * if an error occurred while attempting to load the class; otherwise ! * {@code null}). * * @return the cause of this exception. * @since 1.4 */ public Throwable getCause() {
< prev index next >