Top Description Fields Constructors
java.io

public Class InvalidObjectException

extends ObjectStreamException
Class Inheritance

Indicates that one or more deserialized objects failed validation tests. The argument should provide the reason for the failure.
Since
1.1
See Also
ObjectInputValidation

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
InvalidObjectException(String
Detailed message explaining the reason for the failure.
reason
)

Constructs an InvalidObjectException.

public
InvalidObjectException(String
Detailed message explaining the reason for the failure.
reason
,
Throwable
the cause
cause
)

Constructs an InvalidObjectException with the given reason and cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.ObjectStreamException.serialVersionUID.

Annotations
@Serial

Constructor Detail

InvalidObjectExceptionback to summary
public InvalidObjectException(String reason)

Constructs an InvalidObjectException.

Parameters
reason:String

Detailed message explaining the reason for the failure.

See Also
ObjectInputValidation
InvalidObjectExceptionback to summary
public InvalidObjectException(String reason, Throwable cause)

Constructs an InvalidObjectException with the given reason and cause.

Parameters
reason:String

Detailed message explaining the reason for the failure.

cause:Throwable

the cause

Since
19
See Also
ObjectInputValidation