com.thoughtworks.xstream.converters
Class ConversionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.thoughtworks.xstream.core.BaseException
                  extended by 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

Constructor Summary
ConversionException(Exception cause)
           
ConversionException(String msg)
           
ConversionException(String msg, Exception cause)
           
 
Method Summary
 void add(String name, String information)
           
 String get(String errorKey)
           
 String getShortMessage()
           
 Iterator keys()
           
 
Methods inherited from class com.thoughtworks.xstream.core.BaseException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, 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

ConversionException

public ConversionException(String msg,
                           Exception cause)

ConversionException

public ConversionException(String msg)

ConversionException

public ConversionException(Exception cause)
Method Detail

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()