< prev index next >

src/java.base/share/classes/java/lang/module/FindException.java

Print this page




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.lang.module;
  27 
  28 /**
  29  * Thrown by a {@link ModuleFinder ModuleFinder} when an error occurs finding
  30  * a module. Also thrown by {@link
  31  * Configuration#resolve(ModuleFinder,java.util.List,ModuleFinder,java.util.Collection)
  32  * Configuration.resolve} when resolution fails for observability-related
  33  * reasons.
  34  *
  35  * @since 9
  36  * @spec JPMS
  37  */
  38 
  39 public class FindException extends RuntimeException {

  40     private static final long serialVersionUID = -5817081036963388391L;
  41 
  42     /**
  43      * Constructs a {@code FindException} with no detail message.
  44      */
  45     public FindException() {
  46     }
  47 
  48     /**
  49      * Constructs a {@code FindException} with the given detail
  50      * message.
  51      *
  52      * @param msg
  53      *        The detail message; can be {@code null}
  54      */
  55     public FindException(String msg) {
  56         super(msg);
  57     }
  58 
  59     /**




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.lang.module;
  27 
  28 /**
  29  * Thrown by a {@link ModuleFinder ModuleFinder} when an error occurs finding
  30  * a module. Also thrown by {@link
  31  * Configuration#resolve(ModuleFinder,java.util.List,ModuleFinder,java.util.Collection)
  32  * Configuration.resolve} when resolution fails for observability-related
  33  * reasons.
  34  *
  35  * @since 9
  36  * @spec JPMS
  37  */
  38 
  39 public class FindException extends RuntimeException {
  40     @java.io.Serial
  41     private static final long serialVersionUID = -5817081036963388391L;
  42 
  43     /**
  44      * Constructs a {@code FindException} with no detail message.
  45      */
  46     public FindException() {
  47     }
  48 
  49     /**
  50      * Constructs a {@code FindException} with the given detail
  51      * message.
  52      *
  53      * @param msg
  54      *        The detail message; can be {@code null}
  55      */
  56     public FindException(String msg) {
  57         super(msg);
  58     }
  59 
  60     /**


< prev index next >