private static void sendFailureSelfPatch(StatefulService service,Throwable e){
  StatefulTaskDocument body=new StatefulTaskDocument();
  body.taskInfo=new TaskState();
  body.taskInfo.stage=TaskStage.FAILED;
  body.taskInfo.failure=Utils.toServiceErrorResponse(e);
  service.logWarning("Operation failed: %s",Utils.toString(e));
  sendPatch(service,body);
}

private static void sendFailureSelfPatch ( StatefulService service , Throwable e ) { StatefulTaskDocument body = new StatefulTaskDocument ( ) ; body . taskInfo = new TaskState ( ) ; body . taskInfo . stage = TaskStage . FAILED ; body . taskInfo . failure = Utils . toServiceErrorResponse ( e ) ; service . logWarning ( "Operation failed: %s" , Utils . toString ( e ) ) ; sendPatch ( service , body ) ; }
send a failure patch to the specified service
