Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / mscorlib / system / io / pathtoolongexception.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 /*============================================================
7 **
8 ** Class:  PathTooLongException
9 ** 
10 ** <OWNER>Microsoft</OWNER>
11 **
12 **
13 ** Purpose: Exception for paths and/or filenames that are 
14 ** too long.
15 **
16 **
17 ===========================================================*/
18
19 using System;
20 using System.Runtime.Serialization;
21
22 namespace System.IO {
23
24     [Serializable]
25 [System.Runtime.InteropServices.ComVisible(true)]
26     public class PathTooLongException : IOException
27     {
28         public PathTooLongException() 
29             : base(Environment.GetResourceString("IO.PathTooLong")) {
30             SetErrorCode(__HResults.COR_E_PATHTOOLONG);
31         }
32         
33         public PathTooLongException(String message) 
34             : base(message) {
35             SetErrorCode(__HResults.COR_E_PATHTOOLONG);
36         }
37         
38         public PathTooLongException(String message, Exception innerException) 
39             : base(message, innerException) {
40             SetErrorCode(__HResults.COR_E_PATHTOOLONG);
41         }
42
43         protected PathTooLongException(SerializationInfo info, StreamingContext context) : base (info, context) {
44         }
45     }
46 }