FindException (Java SE 21 & JDK 21)
- All Implemented Interfaces:
Serializable
Thrown by a ModuleFinder when an error occurs finding
a module. Also thrown by Configuration.resolve when resolution fails for observability-related
reasons.
- Since:
- 9
- See Also:
-
Constructor Summary
Constructors
Constructs a
FindExceptionwith no detail message.Constructs a
FindExceptionwith the given detail message.Constructs a
FindExceptionwith the given detail message and cause.Constructs a
FindExceptionwith the given cause. -
Method Summary
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FindException
public FindException()
Constructs a
FindExceptionwith no detail message. -
FindException
public FindException
(String msg) Constructs a
FindExceptionwith the given detail message.- Parameters:
msg- The detail message; can benull
-
FindException
public FindException
(Throwable cause) Constructs a
FindExceptionwith the given cause.- Parameters:
cause- The cause; can benull
-
FindException
Constructs a
FindExceptionwith the given detail message and cause.- Parameters:
msg- The detail message; can benullcause- The cause; can benull
-