Класс FindException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.module.FindException
- Все реализуемые интерфейсы:
Serializable
public class FindException extends RuntimeException
Выбрасывается
ModuleFinder при возникновении ошибки во время поиска модуля. Также выбрасывается Configuration.resolve, если разрешение завершается неудачей по причинам, связанным с наблюдаемостью.- Начиная с:
- 9
- См. также:
Краткое описание конструкторов
| Конструктор | Описание |
|---|---|
FindException() |
Создает FindException без подробного сообщения. |
FindException |
Создает FindException с указанным подробным сообщением. |
FindException |
Создает FindException с указанным подробным сообщением и причиной. |
FindException |
Создает FindException с указанной причиной. |
Краткое описание методов
Методы, объявленные в классе Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Подробное описание конструкторов
FindException
public FindException()
Создает
FindException без подробного сообщения.FindException
public FindException(String msg)
Создает
FindException с указанным подробным сообщением.- Параметры:
-
msg— подробное сообщение; может бытьnull
FindException
public FindException(Throwable cause)
Создает
FindException с указанной причиной.- Параметры:
-
cause— причина; может бытьnull
FindException
public FindException(String msg, Throwable cause)
Создает
FindException с указанным подробным сообщением и причиной.- Параметры:
-
msg— подробное сообщение; может бытьnull -
cause— причина; может бытьnull
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/module/FindException.html