|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.ObjectStreamException
java.io.InvalidClassException
public class InvalidClassException
This exception is thrown when there is some sort of problem with a
class during a serialization operation. This could be:
The field classname
will contain the name of the
class that caused the problem if known. The getMessage() method
for this exception will always include the name of that class
if known.
Field Summary | |
---|---|
String |
classname
The name of the class which encountered the error. |
Constructor Summary | |
---|---|
InvalidClassException(String message)
Create an exception with a descriptive error message, but a null classname. |
|
InvalidClassException(String classname,
String message)
Create an exception with a descriptive error message, and the name of the class that caused the problem. |
Method Summary | |
---|---|
String |
getMessage()
Returns the descriptive error message for this exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String classname
Constructor Detail |
---|
public InvalidClassException(String message)
message
- the descriptive error messagepublic InvalidClassException(String classname, String message)
classname
- the name of the faulty classmessage
- the descriptive error messageMethod Detail |
---|
public String getMessage()
[classname][; ][super.getMessage()]
.
getMessage
in class Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |