Build 1.0_r1(from source)

java.io
Class NotSerializableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.io.ObjectStreamException
                  extended by java.io.NotSerializableException
All Implemented Interfaces:
Serializable

public class NotSerializableException
extends ObjectStreamException

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.

See Also:
ObjectOutputStream.writeObject(Object), ObjectOutput.writeObject(Object), Serialized Form

Constructor Summary
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.
 
Method Summary
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotSerializableException

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


NotSerializableException

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.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature