public void setError(java.lang.String error) 
	throws java.lang.Exception

Sets an error message for an asynchronous computation.

Parameters

NameTypeDescription
errorstringAn error message

Returns

None

Example

GearsFuture<Boolean> f = new GearsFuture<Boolean>();
try {
	f.setError("An error has occurred during asyncForeach");
} catch (Exception e) {
	e.printStackTrace();
}