Class ConfigMappingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.arthurhoch.kissconfig.exceptions.ConfigException
io.github.arthurhoch.kissconfig.exceptions.ConfigMappingException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConfigMissingPropertyException
Thrown when configuration cannot be mapped to a target type.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigMappingException(String message, String key, String source, String targetType, String safeValue) Creates a mapping exception without cause.ConfigMappingException(String message, Throwable cause, String key, String source, String targetType, String safeValue) Creates a mapping exception. -
Method Summary
Methods inherited from class io.github.arthurhoch.kissconfig.exceptions.ConfigException
key, safeValue, source, targetTypeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigMappingException
public ConfigMappingException(String message, Throwable cause, String key, String source, String targetType, String safeValue) Creates a mapping exception.- Parameters:
message- messagecause- causekey- keysource- sourcetargetType- target typesafeValue- safe value
-
ConfigMappingException
public ConfigMappingException(String message, String key, String source, String targetType, String safeValue) Creates a mapping exception without cause.- Parameters:
message- messagekey- keysource- sourcetargetType- target typesafeValue- safe value
-