[Test] Avoid MethodInfoTest.GetMethodBody failure when executed on a release (IL...
[mono.git] / mcs / class / corlib / System.IO / UnexceptionalStreamWriter.cs
index 943e3585a886f6a12d5c7578d7c8c89c69cdb694..e04caf7685e757a4e2e15864a1e0e9b59d445a95 100644 (file)
@@ -42,18 +42,20 @@ using System.Text;
 using System;
 
 namespace System.IO {
-       internal class UnexceptionalStreamWriter: StreamWriter {
+       internal class UnexceptionalStreamWriter: StreamWriter
+       {
+/*
                public UnexceptionalStreamWriter (Stream stream)
                        : base (stream)
                {
                }
-
+*/
                public UnexceptionalStreamWriter (Stream stream,
                                                  Encoding encoding)
                        : base (stream, encoding)
                {
                }
-
+/*
                public UnexceptionalStreamWriter (Stream stream,
                                                  Encoding encoding,
                                                  int bufferSize)
@@ -83,7 +85,7 @@ namespace System.IO {
                        : base (path, append, encoding, bufferSize)
                {
                }
-
+*/
                public override void Flush ()
                {
                        try {
@@ -97,7 +99,7 @@ namespace System.IO {
                {
                        try {
                                base.Write (buffer, index, count);
-                       } catch (IOException) {
+                       } catch (Exception) {
                        }
                }
 
@@ -105,7 +107,7 @@ namespace System.IO {
                {
                        try {
                                base.Write (value);
-                       } catch (IOException) {
+                       } catch (Exception) {
                        }
                }
 
@@ -113,7 +115,7 @@ namespace System.IO {
                {
                        try {
                                base.Write (value);
-                       } catch (IOException) {
+                       } catch (Exception) {
                        }
                }
 
@@ -121,7 +123,7 @@ namespace System.IO {
                {
                        try {
                                base.Write (value);
-                       } catch (IOException) {
+                       } catch (Exception) {
                        }
                }
        }