public class DeserializationException extends Exception
Modifier and Type | Class and Description |
---|---|
static class |
DeserializationException.Problems
The kinds of exceptions that can trigger a DeserializationException.
|
Constructor and Description |
---|
DeserializationException(int position,
DeserializationException.Problems problemType,
Object unexpectedObject)
Instantiates a DeserializationException without assumptions.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
int |
getPosition()
Helps debug the location of a problem.
|
DeserializationException.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 DeserializationException(int position, DeserializationException.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 DeserializationException.Problems getProblemType()
public Object getUnexpectedObject()