Top Description Fields Constructors
java.io

public abstract Class ObjectStreamException

extends IOException
Class Inheritance
Known Direct Subclasses
java.io.OptionalDataException, java.io.StreamCorruptedException, java.io.WriteAbortedException, java.io.InvalidClassException, java.io.InvalidObjectException, java.io.NotActiveException, java.io.NotSerializableException

Superclass of all exceptions specific to Object Stream classes.
Since
1.1

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
protected
ObjectStreamException(String
the detailed message for the exception
message
)

Create an ObjectStreamException with the specified argument.

protected
ObjectStreamException(String
the detailed message for the exception
message
,
Throwable
the cause
cause
)

Create an ObjectStreamException with the specified message and cause.

protected
ObjectStreamException()

Create an ObjectStreamException.

protected
ObjectStreamException(Throwable
the cause
cause
)

Create an ObjectStreamException with the specified cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Annotations
@Serial

Constructor Detail

ObjectStreamExceptionback to summary
protected ObjectStreamException(String message)

Create an ObjectStreamException with the specified argument.

Parameters
message:String

the detailed message for the exception

ObjectStreamExceptionback to summary
protected ObjectStreamException(String message, Throwable cause)

Create an ObjectStreamException with the specified message and cause.

Parameters
message:String

the detailed message for the exception

cause:Throwable

the cause

Since
19
ObjectStreamExceptionback to summary
protected ObjectStreamException()

Create an ObjectStreamException.

ObjectStreamExceptionback to summary
protected ObjectStreamException(Throwable cause)

Create an ObjectStreamException with the specified cause.

Parameters
cause:Throwable

the cause

Since
19