Top Description Fields Constructors
java.io

public Class StreamCorruptedException

extends ObjectStreamException
Class Inheritance

Thrown when control information that was read from an object stream violates internal consistency checks.
Since
1.1

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
StreamCorruptedException(String
String describing the reason for the exception.
reason
)

Create a StreamCorruptedException and list a reason why thrown.

public
StreamCorruptedException()

Create a StreamCorruptedException and list no reason why thrown.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.ObjectStreamException.serialVersionUID.

Annotations
@Serial

Constructor Detail

StreamCorruptedExceptionback to summary
public StreamCorruptedException(String reason)

Create a StreamCorruptedException and list a reason why thrown.

Parameters
reason:String

String describing the reason for the exception.

StreamCorruptedExceptionback to summary
public StreamCorruptedException()

Create a StreamCorruptedException and list no reason why thrown.