WaitHandleCannotBeOpenedException.cs 1.2 KB

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