org.strutsme.common.serialization
Class SerializationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.strutsme.common.serialization.SerializationException
All Implemented Interfaces:
java.io.Serializable

public final class SerializationException
extends java.lang.Exception

Thrown to indicate, that an error occured during the serialization.

This can especially happen if an incompatible class version is to be deserialized.

Author:
lbusmann
See Also:
Serialized Form

Constructor Summary
SerializationException()
          Default constructor.
SerializationException(java.lang.String detailedMessage)
          Constructs a SerializationException with the specified detail message.
SerializationException(java.lang.String detailedMessage, java.lang.Throwable cause)
          Constructs a SerializationException with the specified message and cause.
SerializationException(java.lang.Throwable cause)
          Constructs a SerializationException with the specified cause.
 
Method Summary
 java.lang.Throwable getCause()
          Retrieves the cause.
 
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

SerializationException

public SerializationException()
Default constructor.


SerializationException

public SerializationException(java.lang.String detailedMessage)
Constructs a SerializationException with the specified detail message.

Parameters:
detailedMessage - the detail message.

SerializationException

public SerializationException(java.lang.Throwable cause)
Constructs a SerializationException with the specified cause.

Parameters:
cause - the exception which caused it

SerializationException

public SerializationException(java.lang.String detailedMessage,
                              java.lang.Throwable cause)
Constructs a SerializationException with the specified message and cause.

Parameters:
detailedMessage - the detail message.
cause - the exception which caused it
Method Detail

getCause

public java.lang.Throwable getCause()
Retrieves the cause.

Overrides:
getCause in class java.lang.Throwable
Returns:
the original Exception, which is now wrapped through a SerializationException, or null