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