* System_test.dll.sources: Added Win32ExceptionTest.cs.
[mono.git] / mcs / class / System / System.ComponentModel / Win32Exception.cs
index 594caeb158019e0403c5b04b8a534bb1ee0ef587..025b582f57e90d1801a9c6a8b773f03cb15c8111 100644 (file)
@@ -41,32 +41,31 @@ namespace System.ComponentModel
        {
                private int native_error_code;
 
-//             [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]          
+//             [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]
 #if TARGET_JVM
                [MonoNotSupported("")]
 #endif
                public Win32Exception ()
-                       : base (W32ErrorMessage (Marshal.GetLastWin32Error ()),
-                               Marshal.GetLastWin32Error ()) 
+                       : base (W32ErrorMessage (Marshal.GetLastWin32Error ()))
                {
                        native_error_code = Marshal.GetLastWin32Error ();
                }
 
-//             [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]          
+//             [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]
                public Win32Exception (int error)
-                       : base (W32ErrorMessage (error), error) 
+                       : base (W32ErrorMessage (error))
                {
                        native_error_code = error;
                }
 
-//             [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]          
+//             [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]
                public Win32Exception (int error, string message) 
-                       : base (message, error)
+                       : base (message)
                {
                        native_error_code = error;
                }
 #if NET_2_0
-               [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]          
+               [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]
 #if TARGET_JVM
                [MonoNotSupported ("")]
 #endif
@@ -79,7 +78,7 @@ namespace System.ComponentModel
 #if TARGET_JVM
                [MonoNotSupported ("")]
 #endif
-               [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]          
+               [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]
                public Win32Exception (string message, Exception innerException)
                        : base (message, innerException)
                {
@@ -178,11 +177,11 @@ namespace System.ComponentModel
                                message = Locale.GetText ("Network is unreachable");
                                break;
                        case 10052:
-                               message = Locale.GetText ("Connection broken, keep-alive detected a problem");
+                               message = Locale.GetText ("Connection broken, keep-alive detected a problem");
                                break;
                        case 10053:
-                               message = Locale.GetText ("An established connection was aborted in your host machine.");
-                               break;
+                               message = Locale.GetText ("An established connection was aborted in your host machine.");
+                               break;
                        case 10054:
                                message = Locale.GetText ("Connection reset by peer");
                                break;