jdk/src/java.base/share/classes/java/lang/ClassNotFoundException.java
changeset 32033 bf24e33c7919
parent 25859 3317bb8137f4
equal deleted inserted replaced
32032:22badc53802f 32033:bf24e33c7919
    96         this.ex = ex;
    96         this.ex = ex;
    97     }
    97     }
    98 
    98 
    99     /**
    99     /**
   100      * Returns the exception that was raised if an error occurred while
   100      * Returns the exception that was raised if an error occurred while
   101      * attempting to load the class. Otherwise, returns <tt>null</tt>.
   101      * attempting to load the class. Otherwise, returns {@code null}.
   102      *
   102      *
   103      * <p>This method predates the general-purpose exception chaining facility.
   103      * <p>This method predates the general-purpose exception chaining facility.
   104      * The {@link Throwable#getCause()} method is now the preferred means of
   104      * The {@link Throwable#getCause()} method is now the preferred means of
   105      * obtaining this information.
   105      * obtaining this information.
   106      *
   106      *
   112     }
   112     }
   113 
   113 
   114     /**
   114     /**
   115      * Returns the cause of this exception (the exception that was raised
   115      * Returns the cause of this exception (the exception that was raised
   116      * if an error occurred while attempting to load the class; otherwise
   116      * if an error occurred while attempting to load the class; otherwise
   117      * <tt>null</tt>).
   117      * {@code null}).
   118      *
   118      *
   119      * @return  the cause of this exception.
   119      * @return  the cause of this exception.
   120      * @since   1.4
   120      * @since   1.4
   121      */
   121      */
   122     public Throwable getCause() {
   122     public Throwable getCause() {