{
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
#if TARGET_JVM
[MonoNotSupported ("")]
#endif
- [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]
+ [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]
public Win32Exception (string message, Exception innerException)
: base (message, innerException)
{
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;