diff options
author | Atsushi Eno <atsushi@ximian.com> | 2011-05-11 11:54:52 +0400 |
---|---|---|
committer | Atsushi Eno <atsushi@ximian.com> | 2011-05-11 11:54:52 +0400 |
commit | 4004fbb1900b972a99a2ac2f5b86905963833c7a (patch) | |
tree | 4009a18e3f3d4bab70f9a4dafc835f6afe42ef69 /mcs/class/System.ServiceModel/System.IO | |
parent | 761ef9d9cf76d3ddd892106dff5d9c82c45f054b (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.cs | 41 |
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; + } + } + } +} + |