Class SerializationException

  • All Implemented Interfaces:
    Serializable

    public class SerializationException
    extends RuntimeException

    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
    See Also:
    Serialized Form
    • Constructor Detail

      • SerializationException

        public SerializationException()

        Constructs a new SerializationException without specified detail message.

      • SerializationException

        public SerializationException​(String msg)

        Constructs a new SerializationException with specified detail message.

        Parameters:
        msg - The error message.
      • SerializationException

        public SerializationException​(Throwable cause)

        Constructs a new SerializationException with specified nested Throwable.

        Parameters:
        cause - The Exception or Error that caused this exception to be thrown.
      • SerializationException

        public SerializationException​(String msg,
                                      Throwable cause)

        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.