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

This exception is thrown when a class implements Serializable because of a superclass, but should not be serialized. The descriptive message will consist of the name of the class in question.

Since:
1.1
See Also:
Serialized Form

Constructor Summary
NotSerializableException()
          Create an exception without a descriptive error message.
NotSerializableException(String message)
          Create an exception with a descriptive error message, which should be the name of the class.
 
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()
Create an exception without a descriptive error message.


NotSerializableException

public NotSerializableException(String message)
Create an exception with a descriptive error message, which should be the name of the class.

Parameters:
message - the descriptive error message