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:
java.io.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 Summary
Constructors Constructor Description CoercionFailedException(java.lang.Object inputValue, java.lang.String typeDescription)
Indicate that a value transformation has failed.CoercionFailedException(java.lang.reflect.AnnotatedType target, java.lang.Object inputValue, java.lang.String typeDescription)
Indicate that a value transformation has failed.CoercionFailedException(java.lang.reflect.Type target, java.lang.Object inputValue, java.lang.String typeDescription)
Indicate that a value transformation has failed.
-
Method Summary
-
Methods inherited from class org.spongepowered.configurate.serialize.SerializationException
expectedType, getMessage, initType, initType
-
Methods inherited from class org.spongepowered.configurate.ConfigurateException
initPath, path, rawMessage, wrap
-
-
-
-
Constructor Detail
-
CoercionFailedException
public CoercionFailedException(java.lang.Object inputValue, java.lang.String typeDescription)
Indicate that a value transformation has failed.- Parameters:
inputValue
- original valuetypeDescription
- description of the expected type- Since:
- 4.0.0
-
CoercionFailedException
public CoercionFailedException(java.lang.reflect.Type target, java.lang.Object inputValue, java.lang.String typeDescription)
Indicate that a value transformation has failed.- Parameters:
target
- expected typeinputValue
- original valuetypeDescription
- description of the expected type- Since:
- 4.0.0
-
CoercionFailedException
public CoercionFailedException(java.lang.reflect.AnnotatedType target, java.lang.Object inputValue, java.lang.String typeDescription)
Indicate that a value transformation has failed.- Parameters:
target
- expected typeinputValue
- original valuetypeDescription
- description of the expected type- Since:
- 4.2.0
-
-