Class Overview
Signals a problem during the serialization or or deserialization of an
object. Possible reasons include:
- The SUIDs of the class loaded by the VM and the serialized class info do
not match.
- A serializable or externalizable object cannot be instantiated (when
deserializing) because the no-arg constructor that needs to be run is not
visible or fails.
Summary
Fields |
public
String |
classname |
The fully qualified name of the class that caused the problem. |
Public Constructors |
|
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.
|
Public Methods |
String
|
getMessage()
Returns the detail message which was provided when the exception was
created.
|
[Expand]
Inherited Methods |
From class java.lang.Throwable
|
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
Fields
public
String
classname
The fully qualified name of the class that caused the problem.
Public Constructors
public
InvalidClassException
(String detailMessage)
Constructs a new InvalidClassException
with its stack trace and
detailed message filled in.
Parameters
detailMessage
| the detail message for this exception. |
public
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.
Parameters
className
| the name of the class that caused the exception. |
detailMessage
| the detail message for this exception. |
Public Methods
public
String
getMessage
()
Returns the detail message which was provided when the exception was
created. 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.
Returns
- the detail message, possibly concatenated with the name of the
class that caused the problem.