public class InvalidClassException extends RuntimeException
| Constructor and Description |
|---|
InvalidClassException(String message)
Constructs a new InvalidClassException with the specified detail message.
|
InvalidClassException(String message,
Throwable cause)
Constructs a new InvalidClassException with the specified detail message and cause.
|
InvalidClassException(Throwable cause)
Constructs a new InvalidClassException with the specified cause and a detail message of
{@code (cause==null ?
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidClassException(String message)
message - the String that contains a detailed messagepublic InvalidClassException(String message, Throwable cause)
message - the detail message, which is saved for later retrieval by the
Throwable.getMessage() method.cause - the cause, which is saved for later retrieval by the
Throwable.getCause() method. (A null value is permitted,
and indicates that the cause is nonexistent or unknown.)public InvalidClassException(Throwable cause)
(cause==null ? null : cause.toString()). This constructor is useful for
exceptions that are little more than wrappers for other throwables.cause - the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is permitted,
and indicates that the cause is nonexistent or unknown.)Copyright © 2021. All rights reserved.