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 SummaryConstructorsConstructorDescriptionCoercionFailedException(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 SummaryMethods inherited from class org.spongepowered.configurate.serialize.SerializationExceptionexpectedType, getMessage, initType, initTypeMethods inherited from class org.spongepowered.configurate.ConfigurateExceptioninitPath, path, rawMessage, wrapMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
CoercionFailedExceptionIndicate that a value transformation has failed.- Parameters:
- inputValue- original value
- typeDescription- description of the expected type
- Since:
- 4.0.0
 
- 
CoercionFailedExceptionIndicate that a value transformation has failed.- Parameters:
- target- expected type
- inputValue- original value
- typeDescription- description of the expected type
- Since:
- 4.0.0
 
- 
CoercionFailedExceptionIndicate that a value transformation has failed.- Parameters:
- target- expected type
- inputValue- original value
- typeDescription- description of the expected type
- Since:
- 4.2.0
 
 
-