src/org/ohmage/exception/WorkflowException.java
public void failRequest(final Request request) {
		if(annotator == null) {
			request.setFailed();
		}
		else {
			request.setFailed(annotator.getErrorCode(), annotator.getErrorText());
		}
	}
/**
	 * Sets a request as failed based on the error code and error text in this
	 * exception if any is present. If not, it will fail it with whatever the
	 * request's general failure message is.
	 * 
	 * @param request The request to fail.
	 */
Sets a request as failed based on the error code and error text in this
exception if any is present. If not, it will fail it with whatever the
request's general failure message is.

@param request The request to fail.
Sets a request as failed based on the error code and error text in this exception if any is present . If not it will fail it with whatever the request ' s general failure message is . @param request The request to fail .
public void failRequest(final Request request) {
		if(annotator == null) {
			request.setFailed();
		}
		else {
			request.setFailed(annotator.getErrorCode(), annotator.getErrorText());
		}
	}
public void failRequest ( final Request request ) { if ( annotator == null ) { request . setFailed ( ) ; } else { request . setFailed ( annotator . getErrorCode ( ) , annotator . getErrorText ( ) ) ; } }
Sets a request as failed based on the error code and error text in this
 exception if any is present.
Sets a request as failed based on the error code and error text in this exception if any is present .