unwrapError


Description:

public E unwrapError ()

Returns the error value. Returns null if this is a success.

Example:

    var r = Result.error<string,string> ("not found");
assert (r.unwrapError () == "not found");

Returns:

the error value, or null if success.