InvalidClassException


InvalidClassException java.io

Java 1.1 serializable checked

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.

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  ;   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net