Class SerializerException

  • All Implemented Interfaces:
    Serializable

    public class SerializerException
    extends Exception
    Checked exception to be thrown if serialization or deserialization fails within a Serializer instance.
    Author:
    Andreas Oberhoff
    See Also:
    Serialized Form
    • Constructor Detail

      • SerializerException

        public SerializerException​(String message)
        Constructs a new SerializerException with the specified detail message
        Parameters:
        message - the detail message
      • SerializerException

        public SerializerException​(Throwable cause)
        Constructs a new SerializerException with the specified cause.
        Parameters:
        cause - the cause
      • SerializerException

        public SerializerException​(String message,
                                   Throwable cause)
        Constructs a new SerializerException with the specified message and cause.
        Parameters:
        message - the detail message
        cause - the cause
      • SerializerException

        public SerializerException​(String message,
                                   Throwable cause,
                                   boolean enableSuppression,
                                   boolean writableStackTrace)
        Constructs a new SerializerException with the specified message, cause, suppression enabled or disabled and writable stack trace enabled or disabled.
        Parameters:
        message - the detail message
        cause - the cause
        enableSuppression - whether suppression is enabled or disabled
        writableStackTrace - whether the stack trace should be writable