PathTooLongException.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System;
  5. using System.Runtime.Serialization;
  6. namespace System.IO
  7. {
  8. [Serializable]
  9. [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
  10. public class PathTooLongException : IOException
  11. {
  12. public PathTooLongException()
  13. : base(SR.IO_PathTooLong)
  14. {
  15. HResult = HResults.COR_E_PATHTOOLONG;
  16. }
  17. public PathTooLongException(string message)
  18. : base(message)
  19. {
  20. HResult = HResults.COR_E_PATHTOOLONG;
  21. }
  22. public PathTooLongException(string message, Exception innerException)
  23. : base(message, innerException)
  24. {
  25. HResult = HResults.COR_E_PATHTOOLONG;
  26. }
  27. protected PathTooLongException(SerializationInfo info, StreamingContext context)
  28. : base(info, context)
  29. {
  30. }
  31. }
  32. }