StreamCorruptedException

  • StreamCorruptedException signals that data read from an object stream has violated internal consistency checks.

  • It is a subclass of ObjectStreamException and indicates issues with the stream's structure or content.

  • This exception can be thrown with an explanatory message or without one.

  • It inherits methods from Throwable for stack trace and error handling.

public class StreamCorruptedException extends ObjectStreamException

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

Public Constructor Summary

StreamCorruptedException(String reason)
Create a StreamCorruptedException and list a reason why thrown.
StreamCorruptedException()
Create a StreamCorruptedException and list no reason why thrown.

Inherited Method Summary

Public Constructors

public StreamCorruptedException (String reason)

Create a StreamCorruptedException and list a reason why thrown.

Parameters
reason String describing the reason for the exception.

public StreamCorruptedException ()

Create a StreamCorruptedException and list no reason why thrown.