public class JsonException extends Exception
Modifier and Type | Class and Description |
---|---|
static class |
JsonException.Problems
The kinds of exceptions that can trigger a JsonException.
|
Constructor and Description |
---|
JsonException(int position,
JsonException.Problems problemType,
Object unexpectedObject)
Instantiates a JsonException without assumptions.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
int |
getPosition()
Helps debug the location of a problem.
|
JsonException.Problems |
getProblemType()
Helps find an appropriate solution for a problem.
|
Object |
getUnexpectedObject()
Helps identify the problem.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public JsonException(int position, JsonException.Problems problemType, Object unexpectedObject)
position
- where the exception occurred.problemType
- how the exception occurred.unexpectedObject
- what caused the exception.public String getMessage()
getMessage
in class Throwable
public int getPosition()
public JsonException.Problems getProblemType()
public Object getUnexpectedObject()
Copyright © 2018. All rights reserved.