SetError

Sets an error message.

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

Sets an error message for an asynchronous computation.

Parameters

Name Type Description
error string An 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();
}
RATE THIS PAGE
Back to top ↑