From cc5f161443c9c1653240469c6173b16fde6f4211 Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Mon, 14 Jul 2014 14:20:51 +0900 Subject: [PATCH] =?utf8?q?ArgumentException=E3=81=AE=E3=82=B3=E3=83=B3?= =?utf8?q?=E3=82=B9=E3=83=88=E3=83=A9=E3=82=AF=E3=82=BF=E3=81=ABparamName?= =?utf8?q?=E3=81=8C=E6=8C=87=E5=AE=9A=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84?= =?utf8?q?=E3=81=AA=E3=81=84=E3=81=8B=E4=B8=8D=E6=AD=A3=E3=81=A7=E3=81=82?= =?utf8?q?=E3=82=8B=E7=AE=87=E6=89=80=E3=82=92=E4=BF=AE=E6=AD=A3=20(CA2208?= =?utf8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit http://msdn.microsoft.com/ja-jp/library/ms182347.aspx --- OpenTween/Connection/TwipplePhoto.cs | 2 +- OpenTween/LRUCacheDictionary.cs | 8 ++++---- OpenTween/PostFilterRule.cs | 4 ++-- OpenTween/SearchWordDialog.cs | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/OpenTween/Connection/TwipplePhoto.cs b/OpenTween/Connection/TwipplePhoto.cs index e399867c..61fe1fe4 100644 --- a/OpenTween/Connection/TwipplePhoto.cs +++ b/OpenTween/Connection/TwipplePhoto.cs @@ -56,7 +56,7 @@ namespace OpenTween.Connection if (twitter == null) throw new ArgumentNullException("twitter"); if (twitterConfig == null) - throw new ArgumentNullException("config"); + throw new ArgumentNullException("twitterConfig"); this.twitter = twitter; this.twitterConfig = twitterConfig; diff --git a/OpenTween/LRUCacheDictionary.cs b/OpenTween/LRUCacheDictionary.cs index c1693d26..dd4206d7 100644 --- a/OpenTween/LRUCacheDictionary.cs +++ b/OpenTween/LRUCacheDictionary.cs @@ -240,13 +240,13 @@ namespace OpenTween public void CopyTo(KeyValuePair[] array, int arrayIndex) { if (array == null) - throw new ArgumentNullException(); + throw new ArgumentNullException("array"); if (arrayIndex < 0) - throw new ArgumentOutOfRangeException(); + throw new ArgumentOutOfRangeException("arrayIndex"); if (arrayIndex >= array.Length) - throw new ArgumentException("arrayIndex is equal to or greater than array.Length."); + throw new ArgumentException("arrayIndex is equal to or greater than array.Length.", "arrayIndex"); if (array.Length - arrayIndex < this.Count) - throw new ArgumentException("The destination array is too small."); + throw new ArgumentException("The destination array is too small.", "array"); foreach (var pair in this) array[arrayIndex++] = pair; diff --git a/OpenTween/PostFilterRule.cs b/OpenTween/PostFilterRule.cs index e82ba31c..e4f4f44e 100644 --- a/OpenTween/PostFilterRule.cs +++ b/OpenTween/PostFilterRule.cs @@ -95,7 +95,7 @@ namespace OpenTween set { if (value == null) - throw new ArgumentNullException(); + throw new ArgumentNullException("value"); this.IsDirty = true; this._FilterBody = value; @@ -110,7 +110,7 @@ namespace OpenTween set { if (value == null) - throw new ArgumentNullException(); + throw new ArgumentNullException("value"); this.IsDirty = true; this._ExFilterBody = value; diff --git a/OpenTween/SearchWordDialog.cs b/OpenTween/SearchWordDialog.cs index fab28b05..6e51599f 100644 --- a/OpenTween/SearchWordDialog.cs +++ b/OpenTween/SearchWordDialog.cs @@ -96,7 +96,7 @@ namespace OpenTween this.textSearchTimeline.Text = value.Query; break; default: - throw new InvalidEnumArgumentException("value.Type", (int)value.Type, typeof(SearchType)); + throw new InvalidEnumArgumentException("value", (int)value.Type, typeof(SearchType)); } } } -- 2.11.0