class FragmentStatusReporter implements AutoCloseable {

  void fail(final UserException ex) {
    final FragmentStatus status = getStatus(FragmentState.FAILED, ex);
    sendStatus(status);
  }

  public  FragmentStatusReporter(final ExecutorFragmentContext context);

}