Package com.github.tnakamot.json.value
Class WrongValueTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.tnakamot.json.value.WrongValueTypeException
-
- All Implemented Interfaces:
Serializable
public class WrongValueTypeException extends RuntimeException
Thrown when this library gets a JSON value of unexpected type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WrongValueTypeException(String msg, JSONValueType expected, JSONValueType actual)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONValueType
actual()
JSONValueType
expected()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
WrongValueTypeException
public WrongValueTypeException(String msg, JSONValueType expected, JSONValueType actual)
-
-
Method Detail
-
expected
public JSONValueType expected()
-
actual
public JSONValueType actual()
-
-