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
Wrapper for the native IOException (or similar) when a
Serializer
or
Deserializer
failed.
Thrown by SerializingConverter
and DeserializingConverter
.- Since:
- 3.0.5
- Author:
- Gary Russell, Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSerializationFailedException
(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, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SerializationFailedException
Construct aSerializationException
with the specified detail message.- Parameters:
message
- the detail message
-
SerializationFailedException
Construct aSerializationException
with the specified detail message and nested exception.- Parameters:
message
- the detail messagecause
- the nested exception
-