com.thoughtworks.xstream
Class XStreamException

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.XStreamException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CannotResolveClassException, ConversionException, ObjectAccessException, StreamException, XStream.InitializationException

public class XStreamException
extends com.thoughtworks.xstream.core.BaseException

Base exception for all thrown exceptions with XStream. JDK 1.3 friendly cause handling.

Since:
1.3
Author:
Joe Walnes, Jörg Schaible
See Also:
Serialized Form

Constructor Summary
protected XStreamException()
          Default constructor.
  XStreamException(java.lang.String message)
          Constructs an XStreamException with a message.
  XStreamException(java.lang.String message, java.lang.Throwable cause)
          Constructs an XStreamException with a message as wrapper for a different causing Throwable.
  XStreamException(java.lang.Throwable cause)
          Constructs an XStreamException as wrapper for a different causing Throwable.
 
Method Summary
 java.lang.Throwable 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

XStreamException

protected XStreamException()
Default constructor.

Since:
1.3

XStreamException

public XStreamException(java.lang.String message)
Constructs an XStreamException with a message.

Parameters:
message -
Since:
1.3

XStreamException

public XStreamException(java.lang.Throwable cause)
Constructs an XStreamException as wrapper for a different causing Throwable.

Parameters:
cause -
Since:
1.3

XStreamException

public XStreamException(java.lang.String message,
                        java.lang.Throwable cause)
Constructs an XStreamException with a message as wrapper for a different causing Throwable.

Parameters:
message -
cause -
Since:
1.3
Method Detail

getCause

public java.lang.Throwable getCause()
Specified by:
getCause in class com.thoughtworks.xstream.core.BaseException


Copyright © 2004-2012 XStream. All Rights Reserved.