question: 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 ) ; }
target:  Send a failure patch to the specified service