Class SerializationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.loomcache.common.exception.LoomException
com.loomcache.common.exception.SerializationException
- All Implemented Interfaces:
Serializable
Thrown when serialization or deserialization of data fails.
This exception indicates a problem serializing data to be sent over the network or deserializing data received from the network. Common causes include: - Incompatible class versions - Missing or incompatible serialization libraries - Corrupted or malformed data - Unsupported data types
This is typically a non-recoverable error that indicates a problem with the schema, data format, or serialization configuration.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSerializationException(String message) Creates a new SerializationException with message.SerializationException(String message, String dataType, boolean serializing, Throwable cause) Creates a new SerializationException with details about the operation.SerializationException(String message, Throwable cause) Creates a new SerializationException with message and cause. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether this is a deserialization failure.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SerializationException
Creates a new SerializationException with message.- Parameters:
message- the error message
-
SerializationException
-
SerializationException
public SerializationException(String message, String dataType, boolean serializing, Throwable cause) Creates a new SerializationException with details about the operation.- Parameters:
message- the error messagedataType- the type of data being serializedserializing- true if serializing, false if deserializingcause- the underlying cause
-
-
Method Details
-
isDeserializing
public boolean isDeserializing()Checks whether this is a deserialization failure.- Returns:
- true if deserializing, false if serializing (or unknown)
-