com.thoughtworks.xstream.converters
Class ConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.thoughtworks.xstream.core.BaseException
com.thoughtworks.xstream.converters.ConversionException
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.ErrorWriter, Serializable
public class ConversionException
- extends com.thoughtworks.xstream.core.BaseException
- implements com.thoughtworks.xstream.converters.ErrorWriter
Thrown by 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.
- Author:
- Joe Walnes
- See Also:
ErrorWriter
,
Serialized Form
Methods inherited from class com.thoughtworks.xstream.core.BaseException |
getCause |
ConversionException
public ConversionException(String msg,
Exception cause)
ConversionException
public ConversionException(String msg)
ConversionException
public ConversionException(Exception cause)
get
public String get(String errorKey)
add
public void add(String name,
String information)
- Specified by:
add
in interface com.thoughtworks.xstream.converters.ErrorWriter
keys
public Iterator keys()
getShortMessage
public String getShortMessage()