code: @Trivial
      private void writeObject(ObjectOutputStream out) throws IOException {
          PutField fields = out.putFields();
          fields.put(FAILURE, failure);
          fields.put(PARAMS, params);
          fields.put(REASON, reason);
          out.writeFields();
      }
docs: Serialize task information.
  
  @param out The stream to which this object is serialized.
  @throws IOException