Package com.github.tnakamot.json.pointer
Class InvalidJSONPointerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.github.tnakamot.json.pointer.InvalidJSONPointerException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidJSONPointerSyntaxException
,InvalidJSONPointerWithTokenException
public abstract class InvalidJSONPointerException extends Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidJSONPointerException(String msg, String text, int begin, int end)
Instantiate the exception with a JSON Pointer text that has an error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
begin()
Beginning location of the character range where the problem is.int
end()
End location of the character range where the problem is.String
getMessage()
String
text()
Returns the JSON Pointer text that has an error.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidJSONPointerException
public InvalidJSONPointerException(String msg, String text, int begin, int end)
Instantiate the exception with a JSON Pointer text that has an error.- Parameters:
msg
- error message to showtext
- the JSON Pointer text that has a syntax errorbegin
- beginning location of the character range where the problem isend
- end location of the character range where the problem is
-
-
Method Detail
-
text
public String text()
Returns the JSON Pointer text that has an error.- Returns:
- the JSON Pointer text that has an error.
-
begin
public int begin()
Beginning location of the character range where the problem is.- Returns:
- beginning location of the character range where the problem is.
-
end
public int end()
End location of the character range where the problem is.- Returns:
- end location of the character range where the problem is.
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-