Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / mscorlib / system / threading / threadstartexception.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 //
7 // <OWNER>Microsoft</OWNER>
8
9 namespace System.Threading 
10 {
11     using System;
12     using System.Runtime.Serialization;
13     using System.Runtime.InteropServices;
14
15     [Serializable]
16     public sealed class ThreadStartException : SystemException 
17     {
18         private ThreadStartException() 
19             : base(Environment.GetResourceString("Arg_ThreadStartException")) 
20         {
21             SetErrorCode(__HResults.COR_E_THREADSTART);
22         }
23
24         private ThreadStartException(Exception reason)
25             : base(Environment.GetResourceString("Arg_ThreadStartException"), reason)
26         {
27             SetErrorCode(__HResults.COR_E_THREADSTART);
28         }
29
30         //required for serialization
31         internal ThreadStartException(SerializationInfo info, StreamingContext context) 
32             : base(info, context) 
33         {
34         }
35    
36     }
37 }
38
39