private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();

    exceptions = new ArrayList<Throwable>();
    int size = stream.readInt();
    for (int i = 0; i < size; i++) {
      exceptions.add((Throwable)stream.readObject());
    }
  }