< prev index next >

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

Print this page




  23  * questions.
  24  */
  25 
  26 package java.lang;
  27 
  28 /**
  29  * Thrown if the Java Virtual Machine or a <code>ClassLoader</code> instance
  30  * tries to load in the definition of a class (as part of a normal method call
  31  * or as part of creating a new instance using the <code>new</code> expression)
  32  * and no definition of the class could be found.
  33  * <p>
  34  * The searched-for class definition existed when the currently
  35  * executing class was compiled, but the definition can no longer be
  36  * found.
  37  *
  38  * @author  unascribed
  39  * @since   1.0
  40  */
  41 public
  42 class NoClassDefFoundError extends LinkageError {

  43     private static final long serialVersionUID = 9095859863287012458L;
  44 
  45     /**
  46      * Constructs a <code>NoClassDefFoundError</code> with no detail message.
  47      */
  48     public NoClassDefFoundError() {
  49         super();
  50     }
  51 
  52     /**
  53      * Constructs a <code>NoClassDefFoundError</code> with the specified
  54      * detail message.
  55      *
  56      * @param   s   the detail message.
  57      */
  58     public NoClassDefFoundError(String s) {
  59         super(s);
  60     }
  61 }


  23  * questions.
  24  */
  25 
  26 package java.lang;
  27 
  28 /**
  29  * Thrown if the Java Virtual Machine or a <code>ClassLoader</code> instance
  30  * tries to load in the definition of a class (as part of a normal method call
  31  * or as part of creating a new instance using the <code>new</code> expression)
  32  * and no definition of the class could be found.
  33  * <p>
  34  * The searched-for class definition existed when the currently
  35  * executing class was compiled, but the definition can no longer be
  36  * found.
  37  *
  38  * @author  unascribed
  39  * @since   1.0
  40  */
  41 public
  42 class NoClassDefFoundError extends LinkageError {
  43     @java.io.Serial
  44     private static final long serialVersionUID = 9095859863287012458L;
  45 
  46     /**
  47      * Constructs a <code>NoClassDefFoundError</code> with no detail message.
  48      */
  49     public NoClassDefFoundError() {
  50         super();
  51     }
  52 
  53     /**
  54      * Constructs a <code>NoClassDefFoundError</code> with the specified
  55      * detail message.
  56      *
  57      * @param   s   the detail message.
  58      */
  59     public NoClassDefFoundError(String s) {
  60         super(s);
  61     }
  62 }
< prev index next >