浏览代码

Fix exception ctor

Claire Novotny 5 年之前
父节点
当前提交
dd5c92640b
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Rx.NET/Source/src/System.Reactive/Linq/Observable.Binding.cs

+ 4 - 4
Rx.NET/Source/src/System.Reactive/Linq/Observable.Binding.cs

@@ -256,7 +256,7 @@ namespace System.Reactive.Linq
 
             if (disconnectDelay < TimeSpan.Zero)
             {
-                throw new ArgumentException("disconnectDelay");
+                throw new ArgumentException("Delay cannot be less than zero", "disconnectDelay");
             }
 
             return s_impl.RefCount(source, disconnectDelay);
@@ -285,7 +285,7 @@ namespace System.Reactive.Linq
 
             if (disconnectDelay < TimeSpan.Zero)
             {
-                throw new ArgumentException("disconnectDelay");
+                throw new ArgumentException("Delay cannot be less than zero", "disconnectDelay");
             }
 
             return s_impl.RefCount(source, disconnectDelay, scheduler);
@@ -333,7 +333,7 @@ namespace System.Reactive.Linq
 
             if (disconnectDelay < TimeSpan.Zero)
             {
-                throw new ArgumentException("disconnectDelay");
+                throw new ArgumentException("Delay cannot be less than zero", "disconnectDelay");
             }
             if (minObservers <= 0)
             {
@@ -368,7 +368,7 @@ namespace System.Reactive.Linq
 
             if (disconnectDelay < TimeSpan.Zero)
             {
-                throw new ArgumentException("disconnectDelay");
+                throw new ArgumentException("Delay cannot be less than zero", "disconnectDelay");
             }
             if (minObservers <= 0)
             {