private void  writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();

    stream.writeInt(exceptions.size());
    for (int i = 0; i < exceptions.size(); i++) {
      stream.writeObject(exceptions.get(i));
    }
  }