java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
technology.sola.json.exception.JsonElementTypeException
- All Implemented Interfaces:
Serializable
Exception thrown when
JsonElement
is used in an unexpected way.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJsonElementTypeException
(JsonElementType desiredType, JsonElementType actualType) Creates a new instance of this exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JsonElementTypeException
Creates a new instance of this exception.- Parameters:
desiredType
-JsonElementType
attempted to use asactualType
- actualJsonElementType
for this JsonElement
-