Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / mscorlib / system / threading / waithandlecannotbeopenedexception.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 //
7 // <OWNER>Microsoft</OWNER>
8 namespace System.Threading 
9 {
10     using System;
11     using System.Runtime.Serialization;
12     using System.Runtime.InteropServices;
13
14     [Serializable]
15     [ComVisibleAttribute(false)]
16
17 #if FEATURE_CORECLR
18     public class WaitHandleCannotBeOpenedException : Exception {
19 #else
20     public class WaitHandleCannotBeOpenedException : ApplicationException { 
21 #endif // FEATURE_CORECLR
22         public WaitHandleCannotBeOpenedException() : base(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException")) 
23         {
24             SetErrorCode(__HResults.COR_E_WAITHANDLECANNOTBEOPENED);
25         }
26     
27         public WaitHandleCannotBeOpenedException(String message) : base(message)
28         {
29             SetErrorCode(__HResults.COR_E_WAITHANDLECANNOTBEOPENED);
30         }
31
32         public WaitHandleCannotBeOpenedException(String message, Exception innerException) : base(message, innerException)
33         {
34             SetErrorCode(__HResults.COR_E_WAITHANDLECANNOTBEOPENED);
35         }
36
37         protected WaitHandleCannotBeOpenedException(SerializationInfo info, StreamingContext context) : base (info, context) 
38         {
39         }
40     }
41 }
42