OSDN Git Service

getterから適切でない例外をスローしている箇所を修正 (CA1065)
authorKimura Youichi <kim.upsilon@bucyou.net>
Sun, 13 Jul 2014 00:10:03 +0000 (09:10 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Mon, 21 Jul 2014 06:26:43 +0000 (15:26 +0900)
http://msdn.microsoft.com/ja-jp/library/bb386039.aspx

OpenTween/OTPictureBox.cs
OpenTween/StatusDictionary.cs

index 028a738..bbbc5be 100644 (file)
@@ -135,14 +135,14 @@ namespace OpenTween
         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
         public new string ImageLocation
         {
-            get { throw new NotImplementedException(); }
-            set { throw new NotImplementedException(); }
+            get { throw new NotSupportedException(); }
+            set { throw new NotSupportedException(); }
         }
 
         [EditorBrowsable(EditorBrowsableState.Never)]
         public new void Load(string url)
         {
-            throw new NotImplementedException();
+            throw new NotSupportedException();
         }
     }
 }
index 7933ba4..ec5f434 100644 (file)
@@ -2493,14 +2493,7 @@ namespace OpenTween
             {
                 var id = GetId(Index);
                 if (id < 0) throw new ArgumentException("Index can't find. Index=" + Index.ToString() + "/TabName=" + TabName);
-                try
-                {
-                    return Posts[id];
-                }
-                catch (Exception ex)
-                {
-                    throw new Exception("Index=" + Index.ToString() + "/TabName=" + TabName, ex);
-                }
+                return Posts[id];
             }
         }