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
 
 public class CoercionFailedException extends SerializationException Error thrown when a value fails to be converted to an expected type.- Since:
- 4.0.0
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description CoercionFailedException(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.SerializationExceptionexpectedType, getMessage, initType
 - 
Methods inherited from class org.spongepowered.configurate.ConfigurateExceptioninitPath, path, rawMessage, wrap
 - 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
CoercionFailedExceptionpublic CoercionFailedException(Object inputValue, String typeDescription) Indicate that a value transformation has failed.- Parameters:
- inputValue- original value
- typeDescription- description of the expected type
- Since:
- 4.0.0
 
 - 
CoercionFailedExceptionpublic CoercionFailedException(Type target, Object inputValue, String typeDescription) Indicate that a value transformation has failed.- Parameters:
- target- expected type
- inputValue- original value
- typeDescription- description of the expected type
- Since:
- 4.0.0
 
 
- 
 
-