3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // <OWNER>Microsoft</OWNER>
8 /*=============================================================================
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
{
21 using System
.Runtime
.Serialization
;
22 [System
.Runtime
.InteropServices
.ComVisible(true)]
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
)
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
) {