Package com.github.tnakamot.json.pointer
Class InvalidJSONPointerWithTokenException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.github.tnakamot.json.pointer.InvalidJSONPointerException
-
- com.github.tnakamot.json.pointer.InvalidJSONPointerWithTokenException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidJSONPointerIndexOutOfBoundsException
,InvalidJSONPointerMemberNotExistException
,InvalidJSONPointerNotIndexException
,InvalidJSONPointerReachedPrimitiveException
public abstract class InvalidJSONPointerWithTokenException extends InvalidJSONPointerException
Thrown when evaluation of a JSON Pointer encounters an error.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidJSONPointerWithTokenException(String msg, JSONPointerReferenceToken token)
Instantiate the exception with a reference token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONPointerReferenceToken
token()
The reference token which has an error.-
Methods inherited from class com.github.tnakamot.json.pointer.InvalidJSONPointerException
begin, end, getMessage, text
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidJSONPointerWithTokenException
public InvalidJSONPointerWithTokenException(String msg, JSONPointerReferenceToken token)
Instantiate the exception with a reference token.- Parameters:
msg
- error messagetoken
- a reference token which has an error.
-
-
Method Detail
-
token
public JSONPointerReferenceToken token()
The reference token which has an error.- Returns:
- the reference token which has an error.
-
-