Android
java.io
public class

java.io.NotSerializableException

java.lang.Object
java.lang.Throwable Serializable
java.lang.Exception
java.io.IOException
java.io.ObjectStreamException
java.io.NotSerializableException

When an implementation of ObjectOutput.writeObject() is passed an object that is not serializable, it will throw this type of exception. This can happen if the object does not implement Serializable or Externalizable, or if it is Serializable but it overrides writeObject(ObjectOutputStream) and explicitely decides it wants to prevent serialization, by throwing this type of exception.

Summary

Public Constructors

            NotSerializableException()
Constructs a new instance of this class with its walkback filled in.
            NotSerializableException(String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

Public Constructors

public NotSerializableException()

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

public NotSerializableException(String detailMessage)

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

Parameters

detailMessage The detail message for the exception.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48