Package java.io

Class InvalidObjectException

All Implemented Interfaces:
Serializable

public class InvalidObjectException
extends ObjectStreamException
Signals that, during deserialization, the validation of an object has failed.
See Also:
ObjectInputStream.registerValidation(ObjectInputValidation, int), ObjectInputValidation.validateObject(), Serialized Form
  • Constructor Details

    • InvalidObjectException

      public InvalidObjectException​(String detailMessage)
      Constructs an InvalidObjectException with its stack trace and detail message filled in.
      Parameters:
      detailMessage - the detail message for this exception.