java.io
Class NotActiveException

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

public class NotActiveException
extends ObjectStreamException

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 this exception to be thrown. The list of methods that are protected this way is:

See Also:
ObjectInputStream#defaultReadObject(), ObjectInputStream#registerValidation(ObjectInputValidation, int), ObjectOutputStream#defaultWriteObject(), Serialized Form

Constructor Summary
NotActiveException()
          Constructs a new instance of this class with its walkback filled in.
NotActiveException(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

NotActiveException

public NotActiveException()
Constructs a new instance of this class with its walkback filled in.


NotActiveException

public NotActiveException(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.