Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

9. java.io > InvalidClassException

Name

InvalidClassException

Synopsis

Signals that the serialization mechanism has encountered one of several possible problems with the class of an object that is being serialized or deserialized. The classname field should contain the name of the class in question, and the getMessage( ) method is overridden to return this class name with the message.

java.io.InvalidClassException

Figure 9-28. java.io.InvalidClassException

public class InvalidClassException extends ObjectStreamException {
// Public Constructors
     public InvalidClassException(String reason);  
     public InvalidClassException(String cname, String reason);  
// Public Methods Overriding Throwable
     public String getMessage( );  
// Public Instance Fields
     public String classname;  
}

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint