|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.jsefa.DeserializationException
public final class DeserializationException
Exception thrown when an error occurs during deserialization.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public 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 causeMethod Detail |
---|
public DeserializationException setInputPosition(InputPosition inputPosition)
inputPosition
- the input position
public DeserializationException add(ObjectPathElement element)
element
- an object path element
public InputPosition getInputPosition()
public List<ObjectPathElement> getObjectPath()
public String getMessage()
getMessage
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |