Class SerializationFailedException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.core.serializer.support.SerializationFailedException
- All Implemented Interfaces:
Serializable
public class SerializationFailedException extends NestedRuntimeException
Wrapper for the native IOException (or similar) when aSerializer
orDeserializer
failed. Thrown bySerializingConverter
andDeserializingConverter
.- Since:
- 3.0.5
- Author:
- Gary Russell, Juergen Hoeller
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description SerializationFailedException(String message)
Construct aSerializationException
with the specified detail message.SerializationFailedException(String message, Throwable cause)
Construct aSerializationException
with the specified detail message and nested exception.
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
SerializationFailedException
public SerializationFailedException(String message)
Construct aSerializationException
with the specified detail message.- Parameters:
message
- the detail message
SerializationFailedException
public SerializationFailedException(String message, Throwable cause)
Construct aSerializationException
with the specified detail message and nested exception.- Parameters:
message
- the detail messagecause
- the nested exception