Class ConfigValueExtractionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ru.tinkoff.kora.config.common.extractor.ConfigValueExtractionException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigValueExtractionException(com.typesafe.config.ConfigOrigin origin, String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptioncom.typesafe.config.ConfigOriginstatic <T> TparsingError(com.typesafe.config.ConfigValue value, Exception error) unexpectedValueType(com.typesafe.config.ConfigValue value, com.typesafe.config.ConfigValueType expectedType) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigValueExtractionException
-
-
Method Details
-
getOrigin
public com.typesafe.config.ConfigOrigin getOrigin() -
handle
public static <T> T handle(com.typesafe.config.ConfigValue value, Function<com.typesafe.config.ConfigValue, T> thunk) -
unexpectedValueType
public static ConfigValueExtractionException unexpectedValueType(com.typesafe.config.ConfigValue value, com.typesafe.config.ConfigValueType expectedType) -
parsingError
public static ConfigValueExtractionException parsingError(com.typesafe.config.ConfigValue value, Exception error)
-