java.io

Class InvalidObjectException

Implemented Interfaces:
Serializable

public class InvalidObjectException
extends ObjectStreamException

Indicates that one or more deserialized objects failed validation tests. The argument should provide the reason for the failure.
Since:
JDK1.1
JDK1.1
See Also:
ObjectInputValidation, Serialized Form

Constructor Summary

InvalidObjectException(String reason)
Constructs an InvalidObjectException.

Method Summary

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

InvalidObjectException

public InvalidObjectException(String reason)
Constructs an InvalidObjectException.
Parameters:
reason - Detailed message explaining the reason for the failure.
Usages and Demos :

View More Examples of InvalidObjectException(String reason)
   1:     } catch (Exception e) {
   2:         throw new InvalidObjectException(e.getMessage());
   3:     }
   4:     }
   5: }

View Full Code Here
   1:     if (version != 0)
   2:       throw new InvalidObjectException("");
   3:   }
   4: 
   5:   public void writeToFile(DataOutputStream out, Scene theScene) throws IOException

View Full Code Here
   1:     if (version != 0)
   2:       throw new InvalidObjectException("");
   3:     name = in.readUTF();
   4:   }
   5:   

View Full Code Here
   1:      if (version != 0)
   2:        throw new InvalidObjectException("");
   3:      object = (Object3D) parent;
   4:      skeleton = new Skeleton(in);
   5:    }

View Full Code Here
   1:       
   2:       throw new InvalidObjectException(e.toString());
   3:     }
   4:   }

View Full Code Here