Package java.io
Class StreamCorruptedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.io.ObjectStreamException
-
- java.io.StreamCorruptedException
-
- All Implemented Interfaces:
Serializable
public class StreamCorruptedException extends ObjectStreamException
Signals that theObjectInputStream.readObject()method could not read an object due to missing information (for example, a cyclic reference that doesn't match a previous instance, or a missing class descriptor for the object to be loaded).- See Also:
ObjectInputStream,OptionalDataException, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StreamCorruptedException()Constructs a newStreamCorruptedExceptionwith its stack trace filled in.StreamCorruptedException(String detailMessage)Constructs a newStreamCorruptedExceptionwith its stack trace and detail message filled in.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
StreamCorruptedException
public StreamCorruptedException()
Constructs a newStreamCorruptedExceptionwith its stack trace filled in.
-
StreamCorruptedException
public StreamCorruptedException(String detailMessage)
Constructs a newStreamCorruptedExceptionwith its stack trace and detail message filled in.- Parameters:
detailMessage- the detail message for this exception.
-
-