The result of an operation: either Result.Ok or Result.Err.
The operation failed.
The operation completed successfully.
If the operation failed, this is the error. Otherwise this is null.
Returns true if the operation succeeded, or false if there was an error.
If the operation was successful, this is the return value. Otherwise this is null.
Kotlin convenience method: invoke the callback if the result is an error.
If the result is a success, this method transforms the value to a different type.
If the result is an error, this method transforms the error to a different type.
Kotlin convenience method: return the value if Ok, otherwise invoke the callback with the error.
If the operation failed, throw a VoiceException, otherwise return the result.