Class CoercionFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.spongepowered.configurate.ConfigurateException
org.spongepowered.configurate.serialize.SerializationException
org.spongepowered.configurate.serialize.CoercionFailedException
- All Implemented Interfaces:
Serializable
Error thrown when a value fails to be converted to an expected type.
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCoercionFailedException(Object inputValue, String typeDescription) Indicate that a value transformation has failed.CoercionFailedException(AnnotatedType target, Object inputValue, String typeDescription) Indicate that a value transformation has failed.CoercionFailedException(Type target, Object inputValue, String typeDescription) Indicate that a value transformation has failed. -
Method Summary
Methods inherited from class org.spongepowered.configurate.serialize.SerializationException
expectedType, getMessage, initType, initTypeMethods inherited from class org.spongepowered.configurate.ConfigurateException
initPath, path, rawMessage, wrapMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CoercionFailedException
Indicate that a value transformation has failed.- Parameters:
inputValue- original valuetypeDescription- description of the expected type- Since:
- 4.0.0
-
CoercionFailedException
Indicate that a value transformation has failed.- Parameters:
target- expected typeinputValue- original valuetypeDescription- description of the expected type- Since:
- 4.0.0
-
CoercionFailedException
Indicate that a value transformation has failed.- Parameters:
target- expected typeinputValue- original valuetypeDescription- description of the expected type- Since:
- 4.2.0
-