[mscorlib][System] Use PlatformNotSupportedException instead of NotSupportedException...
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Fri, 27 Nov 2015 08:40:15 +0000 (09:40 +0100)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Fri, 27 Nov 2015 08:49:23 +0000 (09:49 +0100)
mcs/class/System/System.Diagnostics/Process.cs
mcs/class/System/System.Net.NetworkInformation/Ping.cs
mcs/class/corlib/System.Threading/Thread.cs

index 75228caad852acda4fbdf415d1216216af94aad2..b46bc936c1df2df53242753e43da03d6a2b0aa72 100644 (file)
@@ -652,23 +652,23 @@ namespace System.Diagnostics {
 #else
                [Obsolete ("Process.StandardError is not supported on the current platform.", true)]
                public StreamReader StandardError {
-                       get { throw new NotSupportedException ("Process.StandardError is not supported on the current platform."); }
+                       get { throw new PlatformNotSupportedException ("Process.StandardError is not supported on the current platform."); }
                }
 
                [Obsolete ("Process.StandardInput is not supported on the current platform.", true)]
                public StreamWriter StandardInput {
-                       get { throw new NotSupportedException ("Process.StandardInput is not supported on the current platform."); }
+                       get { throw new PlatformNotSupportedException ("Process.StandardInput is not supported on the current platform."); }
                }
 
                [Obsolete ("Process.StandardOutput is not supported on the current platform.", true)]
                public StreamReader StandardOutput {
-                       get { throw new NotSupportedException ("Process.StandardOutput is not supported on the current platform."); }
+                       get { throw new PlatformNotSupportedException ("Process.StandardOutput is not supported on the current platform."); }
                }
 
                [Obsolete ("Process.StartInfo is not supported on the current platform.", true)]
                public ProcessStartInfo StartInfo {
-                       get { throw new NotSupportedException ("Process.StartInfo is not supported on the current platform."); }
-                       set { throw new NotSupportedException ("Process.StartInfo is not supported on the current platform."); }
+                       get { throw new PlatformNotSupportedException ("Process.StartInfo is not supported on the current platform."); }
+                       set { throw new PlatformNotSupportedException ("Process.StartInfo is not supported on the current platform."); }
                }
 #endif // MONO_FEATURE_PROCESS_START
 
@@ -1219,37 +1219,37 @@ namespace System.Diagnostics {
                [Obsolete ("Process.Start is not supported on the current platform.", true)]
                public bool Start ()
                {
-                       throw new NotSupportedException ("Process.Start is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Process.Start is not supported on the current platform.");
                }
 
                [Obsolete ("Process.Start is not supported on the current platform.", true)]
                public static Process Start (ProcessStartInfo startInfo)
                {
-                       throw new NotSupportedException ("Process.Start is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Process.Start is not supported on the current platform.");
                }
 
                [Obsolete ("Process.Start is not supported on the current platform.", true)]
                public static Process Start (string fileName)
                {
-                       throw new NotSupportedException ("Process.Start is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Process.Start is not supported on the current platform.");
                }
 
                [Obsolete ("Process.Start is not supported on the current platform.", true)]
                public static Process Start(string fileName, string arguments)
                {
-                       throw new NotSupportedException ("Process.Start is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Process.Start is not supported on the current platform.");
                }
 
                [Obsolete ("Process.Start is not supported on the current platform.", true)]
                public static Process Start(string fileName, string username, SecureString password, string domain)
                {
-                       throw new NotSupportedException ("Process.Start is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Process.Start is not supported on the current platform.");
                }
 
                [Obsolete ("Process.Start is not supported on the current platform.", true)]
                public static Process Start(string fileName, string arguments, string username, SecureString password, string domain)
                {
-                       throw new NotSupportedException ("Process.Start is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Process.Start is not supported on the current platform.");
                }
 #endif // MONO_FEATURE_PROCESS_START
 
@@ -1533,25 +1533,25 @@ namespace System.Diagnostics {
                [Obsolete ("Process.BeginOutputReadLine is not supported on the current platform.", true)]
                public void BeginOutputReadLine ()
                {
-                       throw new NotSupportedException ("Process.BeginOutputReadLine is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Process.BeginOutputReadLine is not supported on the current platform.");
                }
 
                [Obsolete ("Process.BeginOutputReadLine is not supported on the current platform.", true)]
                public void CancelOutputRead ()
                {
-                       throw new NotSupportedException ("Process.BeginOutputReadLine is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Process.BeginOutputReadLine is not supported on the current platform.");
                }
 
                [Obsolete ("Process.BeginOutputReadLine is not supported on the current platform.", true)]
                public void BeginErrorReadLine ()
                {
-                       throw new NotSupportedException ("Process.BeginOutputReadLine is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Process.BeginOutputReadLine is not supported on the current platform.");
                }
 
                [Obsolete ("Process.BeginOutputReadLine is not supported on the current platform.", true)]
                public void CancelErrorRead ()
                {
-                       throw new NotSupportedException ("Process.BeginOutputReadLine is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Process.BeginOutputReadLine is not supported on the current platform.");
                }
 #endif // MONO_FEATURE_PROCESS_START
 
index 694f89ba053a572d8d16f961bd58df79e8363968..f18b70c0f9ad0babef214d3c27daf9627aebc156 100644 (file)
@@ -340,7 +340,7 @@ namespace System.Net.NetworkInformation {
 
                        return new PingReply (address, buffer, options, trip_time, status);
 #else
-                       throw new NotSupportedException ("Ping is not supported on this platform.");
+                       throw new PlatformNotSupportedException ("Ping is not supported on this platform.");
 #endif // MONO_FEATURE_PROCESS_START
                }
 #endif // !MONOTOUCH
index 6342136b37bd0b78e49aa650285442b84b4f0fc0..7dcb5431760352cf6c2fee9bd2f5a0cafb235903 100644 (file)
@@ -493,19 +493,19 @@ namespace System.Threading {
                [Obsolete ("Thread.Abort is not supported on the current platform.", true)]
                public void Abort ()
                {
-                       throw new NotSupportedException ("Thread.Abort is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Thread.Abort is not supported on the current platform.");
                }
 
                [Obsolete ("Thread.Abort is not supported on the current platform.", true)]
                public void Abort (object stateInfo)
                {
-                       throw new NotSupportedException ("Thread.Abort is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Thread.Abort is not supported on the current platform.");
                }
 
                [Obsolete ("Thread.ResetAbort is not supported on the current platform.", true)]
                public static void ResetAbort ()
                {
-                       throw new NotSupportedException ("Thread.ResetAbort is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Thread.ResetAbort is not supported on the current platform.");
                }
 #endif // MONO_FEATURE_THREAD_ABORT
 
@@ -747,13 +747,13 @@ namespace System.Threading {
                [Obsolete ("Thread.Suspend is not supported on the current platform.", true)]
                public void Suspend ()
                {
-                       throw new NotSupportedException ("Thread.Suspend is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Thread.Suspend is not supported on the current platform.");
                }
 
                [Obsolete ("Thread.Resume is not supported on the current platform.", true)]
                public void Resume ()
                {
-                       throw new NotSupportedException ("Thread.Resume is not supported on the current platform.");
+                       throw new PlatformNotSupportedException ("Thread.Resume is not supported on the current platform.");
                }
 #endif
        }