Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / mscorlib / system / threading / threadstateexception.cs
blobfecd34441cc103c8998d11809490964d45b1247c
1 // ==++==
2 //
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 //
5 // ==--==
6 //
7 // <OWNER>Microsoft</OWNER>
8 /*=============================================================================
9 **
10 ** Class: ThreadStateException
13 ** Purpose: An exception class to indicate that the Thread class is in an
14 ** invalid state for the method.
17 =============================================================================*/
19 namespace System.Threading {
20 using System;
21 using System.Runtime.Serialization;
22 [System.Runtime.InteropServices.ComVisible(true)]
23 [Serializable]
24 public class ThreadStateException : SystemException {
25 public ThreadStateException()
26 : base(Environment.GetResourceString("Arg_ThreadStateException")) {
27 SetErrorCode(__HResults.COR_E_THREADSTATE);
30 public ThreadStateException(String message)
31 : base(message) {
32 SetErrorCode(__HResults.COR_E_THREADSTATE);
35 public ThreadStateException(String message, Exception innerException)
36 : base(message, innerException) {
37 SetErrorCode(__HResults.COR_E_THREADSTATE);
40 protected ThreadStateException(SerializationInfo info, StreamingContext context) : base (info, context) {