IOException.cs 710 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // System.IO.IOException.cs
  3. //
  4. // Author:
  5. // Paolo Molaro ([email protected])
  6. //
  7. // (C) 2001 Ximian, Inc. http://www.ximian.com
  8. //
  9. using System.Runtime.Serialization;
  10. namespace System.IO {
  11. [Serializable]
  12. public class IOException : SystemException {
  13. // Constructors
  14. public IOException ()
  15. : base ("I/O Error")
  16. {
  17. }
  18. public IOException (string message)
  19. : base (message)
  20. {
  21. }
  22. public IOException (string message, Exception inner)
  23. : base (message, inner)
  24. {
  25. }
  26. public IOException (SerializationInfo info, StreamingContext context)
  27. : base (info, context)
  28. {
  29. }
  30. public IOException (string message, int hresult)
  31. : base (message)
  32. {
  33. this.HResult = hresult;
  34. }
  35. }
  36. }