newErrorResult

Factory method to create a result with an exception

Parameters

exception

The result value