java.io
Class InvalidObjectException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byjava.io.ObjectStreamException
                  extended byjava.io.InvalidObjectException
All Implemented Interfaces:
Serializable

public class InvalidObjectException
extends ObjectStreamException

The object graph loaded (deserialized) can be validated by a collection of validator objects. If these decide the validation fails, then will throw InvalidObjectException.

See Also:
ObjectInputStream#registerValidation(ObjectInputValidation, int), ObjectInputValidation#validateObject(), Serialized Form

Constructor Summary
InvalidObjectException(java.lang.String detailMessage)
          Constructs a new instance of this class with its walkback and message filled in.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidObjectException

public InvalidObjectException(java.lang.String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.

Parameters:
detailMessage - The detail message for the exception.