java.io.NotSerializableException
java.io.ObjectStreamException
None
None
New as of JDK 1.1
A NotSerializableException is thrown to indicate that a class can't be serialized.
public class java.io.NotSerializableException extends java.io.ObjectStreamException { // Constructors public NotSerializableException(); public NotSerializableException(String classname); }
This constructor creates a NotSerializableException with no class name.
The name of the class that can't be serialized.
This constructor creates a NotSerializableException with the specified class name.
Method |
Inherited From |
Method |
Inherited From |
---|---|---|---|
clone() |
Object |
equals(Object) |
Object |
fillInStackTrace() |
Throwable |
finalize() |
Object |
getClass() |
Object |
getLocalizedMessage() |
Throwable |
getMessage() |
Throwable |
hashCode() |
Object |
notify() |
Object |
notifyAll() |
Object |
printStackTrace() |
Throwable |
printStackTrace(PrintStream) |
Throwable |
printStackTrace(PrintWriter) |
Throwable |
toString() |
Object |
wait() |
Object |
wait(long) |
Object |
wait(long, int) |
Object |
Exception, ObjectStreamException, Throwable