Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushi@ximian.com>2011-05-11 11:54:52 +0400
committerAtsushi Eno <atsushi@ximian.com>2011-05-11 11:54:52 +0400
commit4004fbb1900b972a99a2ac2f5b86905963833c7a (patch)
tree4009a18e3f3d4bab70f9a4dafc835f6afe42ef69 /mcs/class/System.ServiceModel/System.IO
parent761ef9d9cf76d3ddd892106dff5d9c82c45f054b (diff)
Add PipeException. fixed bug #692987 by Eberhard Beilharz.
Diffstat (limited to 'mcs/class/System.ServiceModel/System.IO')
-rw-r--r--mcs/class/System.ServiceModel/System.IO/PipeException.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/mcs/class/System.ServiceModel/System.IO/PipeException.cs b/mcs/class/System.ServiceModel/System.IO/PipeException.cs
new file mode 100644
index 00000000000..48f1b3a8014
--- /dev/null
+++ b/mcs/class/System.ServiceModel/System.IO/PipeException.cs
@@ -0,0 +1,41 @@
+using System;
+using System.IO;
+using System.Runtime.Serialization;
+using System.ServiceModel.Channels;
+
+namespace System.IO
+{
+ public class PipeException : IOException
+ {
+ public PipeException ()
+ {
+ }
+
+ public PipeException (string message): base (message)
+ {
+ }
+
+ protected PipeException (SerializationInfo info, StreamingContext context)
+ : base (info, context)
+ {
+ }
+
+ public PipeException (string message, Exception inner)
+ : base (message, inner)
+ {
+ }
+
+ public PipeException (string message, int errorCode)
+ : base (message, errorCode)
+ {
+ }
+
+ public virtual int ErrorCode {
+ get {
+ // we re-use the HResult for the error code here.
+ return HResult;
+ }
+ }
+ }
+}
+