public class ConversionException extends XStreamException implements ErrorWriter
Converter implementations when they cannot convert an object
to/from textual data.
When this exception is thrown it can be passed around to things that accept an
ErrorWriter, allowing them to add diagnostics to the stack trace.ErrorWriter,
Serialized Form| Constructor and Description |
|---|
ConversionException(java.lang.String msg) |
ConversionException(java.lang.String msg,
java.lang.Throwable cause) |
ConversionException(java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String name,
java.lang.String information)
Add some information to the error message.
|
java.lang.String |
get(java.lang.String errorKey)
Retrieve information of the error message.
|
java.lang.String |
getMessage() |
java.lang.String |
getShortMessage() |
java.util.Iterator |
keys()
Retrieve an iterator over all keys of the error message.
|
getCausepublic ConversionException(java.lang.String msg,
java.lang.Throwable cause)
public ConversionException(java.lang.String msg)
public ConversionException(java.lang.Throwable cause)
public java.lang.String get(java.lang.String errorKey)
ErrorWriterget in interface ErrorWritererrorKey - the key of the messagepublic void add(java.lang.String name,
java.lang.String information)
ErrorWriteradd in interface ErrorWritername - something to identify the type of information (e.g. 'XPath').information - detail of the message (e.g. '/blah/moo[3]'public java.util.Iterator keys()
ErrorWriterkeys in interface ErrorWriterpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getShortMessage()
Joe Walnes, http://xstream.codehaus.org/