public class InvalidClassException extends ObjectStreamException
Modifier and Type | Field and Description |
---|---|
String |
classname
The fully qualified name of the class that caused the problem.
|
Constructor and Description |
---|
InvalidClassException(String detailMessage)
Constructs a new
InvalidClassException with its stack trace and
detailed message filled in. |
InvalidClassException(String className,
String detailMessage)
Constructs a new
InvalidClassException with its stack trace,
detail message and the fully qualified name of the class which caused the
exception filled in. |
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Returns the detail message which was provided when the exception was
created.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public String classname
public InvalidClassException(String detailMessage)
InvalidClassException
with its stack trace and
detailed message filled in.detailMessage
- the detail message for this exception.public InvalidClassException(String className, String detailMessage)
InvalidClassException
with its stack trace,
detail message and the fully qualified name of the class which caused the
exception filled in.className
- the name of the class that caused the exception.detailMessage
- the detail message for this exception.public String getMessage()
null
is returned if no message was provided at creation
time. If a detail message as well as a class name are provided, then the
values are concatenated and returned.getMessage
in class Throwable