PipeException.cs 702 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.IO;
  3. using System.Runtime.Serialization;
  4. using System.ServiceModel.Channels;
  5. namespace System.IO
  6. {
  7. public class PipeException : IOException
  8. {
  9. public PipeException ()
  10. {
  11. }
  12. public PipeException (string message): base (message)
  13. {
  14. }
  15. protected PipeException (SerializationInfo info, StreamingContext context)
  16. : base (info, context)
  17. {
  18. }
  19. public PipeException (string message, Exception inner)
  20. : base (message, inner)
  21. {
  22. }
  23. public PipeException (string message, int errorCode)
  24. : base (message, errorCode)
  25. {
  26. }
  27. public virtual int ErrorCode {
  28. get {
  29. // we re-use the HResult for the error code here.
  30. return HResult;
  31. }
  32. }
  33. }
  34. }