java.io
Class NotSerializableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.ObjectStreamException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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