Code example for InvalidObjectException

0
	 *            the input stream to read serialized objects from 
	 */ 
	private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
		stream.defaultReadObject();
		if (variable == null) {
			throw new InvalidObjectException("Cannot create an AssignBlockInstruction with a null variable or value");
		} 
	} 
}