On this page

SerializationException

public class org.apache.commons.lang3.SerializationException extends RuntimeException[source]

Exception thrown when the Serialization process fails.

The original error is wrapped within this one.

#NotThreadSafe# because Throwable is not thread-safe

Since:

1.0

Constructors

SerializationException()

Constructs a new SerializationException without specified detail message.

SerializationException(String)

Constructs a new SerializationException with specified detail message.

SerializationException(String, Throwable)

Constructs a new SerializationException with specified detail message and nested Throwable.

SerializationException(Throwable)

Constructs a new SerializationException with specified nested Throwable.

public SerializationException()[source]

Constructs a new SerializationException without specified detail message.

public SerializationException(String msg)[source]

Constructs a new SerializationException with specified detail message.

Parameters:

msg – The error message.

public SerializationException(String msg, Throwable cause)[source]

Constructs a new SerializationException with specified detail message and nested Throwable.

Parameters:
  • msg – The error message.

  • cause – The Exception or Error that caused this exception to be thrown.

public SerializationException(Throwable cause)[source]

Constructs a new SerializationException with specified nested Throwable.

Parameters:

cause – The Exception or Error that caused this exception to be thrown.