PathTooLongException.cs 858 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // System.IO.PathTooLongException.cs
  3. //
  4. // Author:
  5. // Duncan Mak ([email protected])
  6. //
  7. // 2002 (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. using System;
  10. using System.Globalization;
  11. using System.IO;
  12. using System.Runtime.Serialization;
  13. namespace System.IO
  14. {
  15. [Serializable]
  16. public class PathTooLongException : IOException
  17. {
  18. // Constructors
  19. public PathTooLongException ()
  20. : base (Locale.GetText ("Pathname is longer than the maximum length"))
  21. {
  22. }
  23. public PathTooLongException (string message)
  24. : base (message)
  25. {
  26. }
  27. protected PathTooLongException (SerializationInfo info,
  28. StreamingContext context)
  29. : base (info, context)
  30. {
  31. }
  32. public PathTooLongException (string message, Exception innerException)
  33. :base (message, innerException)
  34. {
  35. }
  36. }
  37. }