FileDocCategorySizeDatePackage
NotActiveException.javaAPI DocAndroid 1.5 API2154Wed May 06 22:41:04 BST 2009java.io

NotActiveException

public class NotActiveException extends ObjectStreamException
Signals that a serialization-related method has been invoked in the wrong place. Some methods in {@code ObjectInputStream} and {@code ObjectOutputStream} can only be called from a nested call to readObject() or writeObject(). Any attempt to call them from another context will cause a {@code NotActiveException} to be thrown. The list of methods that are protected this way is:
  • {@link ObjectInputStream#defaultReadObject()}
  • {@link ObjectInputStream#registerValidation(ObjectInputValidation, int)}
  • {@link ObjectOutputStream#defaultWriteObject()}
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public NotActiveException()
Constructs a new {@code NotActiveException} with its stack trace filled in.

since
Android 1.0


                        
      
        super();
    
public NotActiveException(String detailMessage)
Constructs a new {@code NotActiveException} with its stack trace and detail message filled in.

param
detailMessage the detail message for this exception.
since
Android 1.0

        super(detailMessage);
    
Methods Summary