ThreadStartException.cs 984 B

123456789101112131415161718192021222324252627282930
  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 sealed class ThreadStartException : SystemException
  10. {
  11. internal ThreadStartException()
  12. : base(SR.Arg_ThreadStartException)
  13. {
  14. HResult = HResults.COR_E_THREADSTART;
  15. }
  16. internal ThreadStartException(Exception reason)
  17. : base(SR.Arg_ThreadStartException, reason)
  18. {
  19. HResult = HResults.COR_E_THREADSTART;
  20. }
  21. private ThreadStartException(SerializationInfo info, StreamingContext context)
  22. : base(info, context)
  23. {
  24. }
  25. }
  26. }