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 Summary
Constructors 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.SerializationException
expectedType, getMessage, initType
-
Methods inherited from class org.spongepowered.configurate.ConfigurateException
initPath, path, rawMessage, wrap
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CoercionFailedException
public CoercionFailedException(Object inputValue, 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(Type target, Object inputValue, String typeDescription)
Indicate that a value transformation has failed.- Parameters:
target
- expected typeinputValue
- original valuetypeDescription
- description of the expected type- Since:
- 4.0.0
-
-