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 5 using System.Runtime.Serialization; 6 7 namespace System.Threading 8 { 9 [Serializable] 10 [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] 11 public class WaitHandleCannotBeOpenedException : ApplicationException 12 { WaitHandleCannotBeOpenedException()13 public WaitHandleCannotBeOpenedException() : base(SR.Threading_WaitHandleCannotBeOpenedException) 14 { 15 HResult = HResults.COR_E_WAITHANDLECANNOTBEOPENED; 16 } 17 WaitHandleCannotBeOpenedException(String message)18 public WaitHandleCannotBeOpenedException(String message) : base(message) 19 { 20 HResult = HResults.COR_E_WAITHANDLECANNOTBEOPENED; 21 } 22 WaitHandleCannotBeOpenedException(String message, Exception innerException)23 public WaitHandleCannotBeOpenedException(String message, Exception innerException) : base(message, innerException) 24 { 25 HResult = HResults.COR_E_WAITHANDLECANNOTBEOPENED; 26 } 27 WaitHandleCannotBeOpenedException(SerializationInfo info, StreamingContext context)28 protected WaitHandleCannotBeOpenedException(SerializationInfo info, StreamingContext context) : base(info, context) 29 { 30 } 31 } 32 } 33