3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // <OWNER>Microsoft</OWNER>
8 /*=============================================================================
10 ** Class: ThreadInterruptedException
13 ** Purpose: An exception class to indicate that the thread was interrupted
14 ** from a waiting state.
17 =============================================================================*/
18 namespace System.Threading {
19 using System.Threading;
21 using System.Runtime.Serialization;
23 [System.Runtime.InteropServices.ComVisible(true)]
25 public class ThreadInterruptedException : SystemException {
26 public ThreadInterruptedException()
27 : base(GetMessageFromNativeResources(ExceptionMessageKind.ThreadInterrupted)) {
28 SetErrorCode(__HResults.COR_E_THREADINTERRUPTED);
31 public ThreadInterruptedException(String message)
33 SetErrorCode(__HResults.COR_E_THREADINTERRUPTED);
36 public ThreadInterruptedException(String message, Exception innerException)
37 : base(message, innerException) {
38 SetErrorCode(__HResults.COR_E_THREADINTERRUPTED);
41 protected ThreadInterruptedException(SerializationInfo info, StreamingContext context) : base (info, context) {