public static void ThrowIfNotError <TValue, TError>(ResultGeneric <TValue, TError> result) { if (!result.IsError) { throw ResultHasNoErrorException.From(result); } }
public static void ThrowIfNotError <TValue>(ResultEx <TValue> result) { if (!result.IsError) { throw ResultHasNoErrorException.From(result); } }