Class NotTransformableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.craftsblock.craftsnet.api.transformers.exceptions.TransformerException
de.craftsblock.craftsnet.api.transformers.exceptions.NotTransformableException
- All Implemented Interfaces:
Serializable
This exception is thrown when a parameter cannot be transformed to a specified target type.
It extends the TransformerException class, indicating a specific type of transformation failure.
- Since:
- 3.0.2-SNAPSHOT
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNotTransformableException(String parameter, Class<?> targetType) Construct a new NotTransformableException which indicates that something bad happened while transforming the value. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NotTransformableException
Construct a new NotTransformableException which indicates that something bad happened while transforming the value.- Parameters:
parameter- The dynamic URL parameter value that failed transforming.targetType- The class to which the value should be transformed, but isn't suitable for the value.
-