public final class DeserializationException extends RuntimeException
| Constructor and Description |
|---|
DeserializationException(String message)
Constructs a new
DeserializationException with the specified detail message. |
DeserializationException(String message,
Throwable cause)
Constructs a new
DeserializationException with the specified detail message and cause. |
DeserializationException(Throwable cause)
Constructs a new
DeserializationException with the default detail message and cause. |
| Modifier and Type | Method and Description |
|---|---|
DeserializationException |
add(ObjectPathElement element)
Adds the given object path element to the front of the object path.
|
InputPosition |
getInputPosition()
Returns the position within the input stream where the error occurred.
|
String |
getMessage() |
List<ObjectPathElement> |
getObjectPath()
Returns the object path.
|
DeserializationException |
setInputPosition(InputPosition inputPosition)
Sets the position within the input stream where the error occurred.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DeserializationException(String message)
DeserializationException with the specified detail message.message - the detail message.public DeserializationException(String message, Throwable cause)
DeserializationException with the specified detail message and cause.message - the detail messagecause - the causepublic DeserializationException(Throwable cause)
DeserializationException with the default detail message and cause.cause - the causepublic DeserializationException setInputPosition(InputPosition inputPosition)
inputPosition - the input positionpublic DeserializationException add(ObjectPathElement element)
element - an object path elementpublic InputPosition getInputPosition()
public List<ObjectPathElement> getObjectPath()
public String getMessage()
getMessage in class ThrowableCopyright © 2014. All rights reserved.