Class SerializationException

All Implemented Interfaces:
Serializable

public final class SerializationException extends LoomException
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 Details

    • SerializationException

      public SerializationException(String message)
      Creates a new SerializationException with message.
      Parameters:
      message - the error message
    • SerializationException

      public SerializationException(String message, Throwable cause)
      Creates a new SerializationException with message and cause.
      Parameters:
      message - the error message
      cause - the underlying cause
    • SerializationException

      public SerializationException(String message, String dataType, boolean serializing, Throwable cause)
      Creates a new SerializationException with details about the operation.
      Parameters:
      message - the error message
      dataType - the type of data being serialized
      serializing - true if serializing, false if deserializing
      cause - 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)