Utility method to create an Error result from an error
Error
error
error used to crete the Result
Result
an instance of an Error Result inferring its type
Utility method to create an
Error
result from anerror