Top Description Fields Constructors
java.io

public Class NotSerializableException

extends ObjectStreamException
Class Inheritance

Thrown when an instance is required to have a Serializable interface. The serialization runtime or the class of the instance can throw this exception. The argument should be the name of the class.
Since
1.1

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
NotSerializableException(String
Class of the instance being serialized/deserialized.
classname
)

Constructs a NotSerializableException object with message string.

public
NotSerializableException()

Constructs a NotSerializableException object.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.ObjectStreamException.serialVersionUID.

Annotations
@Serial

Constructor Detail

NotSerializableExceptionback to summary
public NotSerializableException(String classname)

Constructs a NotSerializableException object with message string.

Parameters
classname:String

Class of the instance being serialized/deserialized.

NotSerializableExceptionback to summary
public NotSerializableException()

Constructs a NotSerializableException object.