public class NotSerializableException extends ObjectStreamException
ObjectOutput.writeObject() method. This can happen if the object
does not implement Serializable or Externalizable, or if it
is serializable but it overrides writeObject(ObjectOutputStream) and
explicitly prevents serialization by throwing this type of exception.| Constructor and Description |
|---|
NotSerializableException()
Constructs a new
NotSerializableException with its stack trace
filled in. |
NotSerializableException(String detailMessage)
Constructs a new
NotSerializableException with its stack trace
and detail message filled in. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NotSerializableException()
NotSerializableException with its stack trace
filled in.public NotSerializableException(String detailMessage)
NotSerializableException with its stack trace
and detail message filled in.detailMessage - the detail message for this exception.