加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090321154948/http://developer.android.com:80/reference/java/io/NotActiveException.html
public class

NotActiveException

extends ObjectStreamException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ java.io.ObjectStreamException
           ↳ java.io.NotActiveException

Class Overview

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:

  • ObjectInputStream.defaultReadObject()
  • ObjectInputStream.registerValidation()
  • ObjectOutputStream.defaultWriteObject()

Summary

Public Constructors
NotActiveException()
Constructs a new instance of this class with its walkback filled in.
NotActiveException(String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public NotActiveException ()

Constructs a new instance of this class with its walkback filled in.

public NotActiveException (String detailMessage)

Constructs a new instance of this class with its walkback and message filled in.

Parameters
detailMessage The detail message for the exception.