}
catch (IOException ioe)
{
- throw new StreamCorruptedException ("Exception " + ioe + " thrown while exception was being written to stream.");
+ throw new StreamCorruptedException ("Exception " + ioe + " thrown while exception ("+e+") was being written to stream.");
}
reset (true);
throw new NotActiveException ("defaultWriteObject called by non-active class and/or object");
if (fieldsAlreadyWritten)
- throw new IOException ("Only one of putFields and defaultWriteObject may be called, and it may only be called once");
+ throw new IOException ("Only one of writeFields and defaultWriteObject may be called, and it may only be called once");
fieldsAlreadyWritten = true;
}
public PutField putFields () throws IOException
{
- markFieldsWritten ();
-
+ if (currentPutField == null)
+ {
currentPutField = new PutField ()
{
private byte[] prim_field_data
}
};
// end PutFieldImpl
+ }
return currentPutField;
}
if (currentPutField == null)
throw new NotActiveException ("writeFields can only be called after putFields has been called");
+ // moved here from putFields since putFields
+ // may be called more than once, but not writeFields
+ markFieldsWritten();
+
currentPutField.write (this);
+ currentPutField = null;
}
}
catch (Exception _)
{
- throw new IOException ();
+ throw new IOException ("Unexpected Exception "+_);
}
}
}
catch (Exception _)
{
- throw new IOException ();
+ throw new IOException ("Unexpected Exception "+_);
}
}
}
catch (Exception _)
{
- throw new IOException ();
+ throw new IOException ("Unexpected Exception "+_);
}
}
}
catch (Exception _)
{
- throw new IOException ();
+ throw new IOException ("Unexpected Exception "+_);
}
}
}
catch (Exception _)
{
- throw new IOException ();
+ throw new IOException ("Unexpected Exception "+_);
}
}
}
catch (Exception _)
{
- throw new IOException ();
+ throw new IOException ("Unexpected Exception "+_);
}
}
}
catch (Exception _)
{
- throw new IOException ();
+ throw new IOException ("Unexpected Exception "+_);
}
}
}
catch (Exception _)
{
- throw new IOException ();
+ throw new IOException ("Unexpected Exception "+_);
}
}
}
catch (Exception _)
{
- throw new IOException ();
+ throw new IOException ("Unexpected Exception "+_);
}
}