Class JSONTypeError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.leastfixedpoint.json.JSONError
com.leastfixedpoint.json.JSONSchemaError
com.leastfixedpoint.json.JSONTypeError
- All Implemented Interfaces:
Serializable
Signalled to indicate a violation of a type constraint. For example, the program may be expecting a JSON number,
only to be given a JSON array.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJSONTypeError
(Class<?>[] expected, Object actual) JSONTypeError
(Class<?> expected, Object actual) -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
formatClassList
(Class<?>[] classes) Class<?>[]
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
expected
-
actual
-
-
Constructor Details
-
JSONTypeError
-
JSONTypeError
-
-
Method Details
-
getExpected
-
getActual
-
formatClassList
-