|
||||||||||
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
com.thoughtworks.xstream.core.BaseException
com.thoughtworks.xstream.XStreamException
com.thoughtworks.xstream.converters.ConversionException
public class ConversionException
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.
ErrorWriter
,
Serialized FormConstructor Summary | |
---|---|
ConversionException(String msg)
|
|
ConversionException(String msg,
Throwable cause)
|
|
ConversionException(Throwable cause)
|
Method Summary | |
---|---|
void |
add(String name,
String information)
Add some information to the error message. |
String |
get(String errorKey)
Retrieve information of the error message. |
String |
getMessage()
|
String |
getShortMessage()
|
Iterator |
keys()
Retrieve an iterator over all keys of the error message. |
void |
set(String name,
String information)
Set some information to the error message. |
Methods inherited from class com.thoughtworks.xstream.XStreamException |
---|
getCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, 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 ConversionException(String msg, Throwable cause)
public ConversionException(String msg)
public ConversionException(Throwable cause)
Method Detail |
---|
public String get(String errorKey)
ErrorWriter
get
in interface ErrorWriter
errorKey
- the key of the message
public void add(String name, String information)
ErrorWriter
add
in interface ErrorWriter
name
- something to identify the type of information (e.g. 'XPath').information
- detail of the message (e.g. '/blah/moo[3]'public void set(String name, String information)
ErrorWriter
set
in interface ErrorWriter
name
- something to identify the type of information (e.g. 'XPath').information
- detail of the message (e.g. '/blah/moo[3]'public Iterator keys()
ErrorWriter
keys
in interface ErrorWriter
public String getMessage()
getMessage
in class Throwable
public String getShortMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |