3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 /*============================================================
8 ** Class: PathTooLongException
10 ** <OWNER>Microsoft</OWNER>
13 ** Purpose: Exception for paths and/or filenames that are
17 ===========================================================*/
20 using System.Runtime.Serialization;
25 [System.Runtime.InteropServices.ComVisible(true)]
26 public class PathTooLongException : IOException
28 public PathTooLongException()
29 : base(Environment.GetResourceString("IO.PathTooLong")) {
30 SetErrorCode(__HResults.COR_E_PATHTOOLONG);
33 public PathTooLongException(String message)
35 SetErrorCode(__HResults.COR_E_PATHTOOLONG);
38 public PathTooLongException(String message, Exception innerException)
39 : base(message, innerException) {
40 SetErrorCode(__HResults.COR_E_PATHTOOLONG);
43 protected PathTooLongException(SerializationInfo info, StreamingContext context) : base (info, context) {