Package com.github.dakusui.json
Class JsonTypeMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.dakusui.json.JsonException
com.github.dakusui.json.JsonTypeMismatchException
- All Implemented Interfaces:
Serializable
An exception thrown when a Json element is found on a certain path has an
invalid type.
- Author:
- hiroshi
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJsonTypeMismatchException(com.google.gson.JsonElement elem, String reason) Creates an object of this class. -
Method Summary
Methods inherited from class com.github.dakusui.json.JsonException
getProblemCausingNodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JsonTypeMismatchException
Creates an object of this class.- Parameters:
elem- A JSON element whose value is found invalid.reason- A string that describes the reason whyelemwas considered invalid.
-
-
Method Details
-
getMessage
Returns a formatted message.- Overrides:
getMessagein classThrowable
-