Package java.io

Class NotActiveException

All Implemented Interfaces:
Serializable

public class NotActiveException
extends ObjectStreamException
Signals that a serialization-related method has been invoked in the wrong place. Some methods in ObjectInputStream and ObjectOutputStream can only be called from a nested call to readObject() or writeObject(). Any attempt to call them from another context will cause a NotActiveException to be thrown. The list of methods that are protected this way is:
See Also:
Serialized Form
  • Constructor Details

    • NotActiveException

      public NotActiveException()
      Constructs a new NotActiveException with its stack trace filled in.
    • NotActiveException

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