3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // <OWNER>Microsoft</OWNER>
8 /*=============================================================================
10 ** Class: SynchronizationLockException
13 ** Purpose: Wait(), Notify() or NotifyAll() was called from an unsynchronized
17 =============================================================================*/
19 namespace System
.Threading
{
22 using System
.Runtime
.Serialization
;
23 [System
.Runtime
.InteropServices
.ComVisible(true)]
25 public class SynchronizationLockException
: SystemException
{
26 public SynchronizationLockException()
27 : base(Environment
.GetResourceString("Arg_SynchronizationLockException")) {
28 SetErrorCode(__HResults
.COR_E_SYNCHRONIZATIONLOCK
);
31 public SynchronizationLockException(String message
)
33 SetErrorCode(__HResults
.COR_E_SYNCHRONIZATIONLOCK
);
36 public SynchronizationLockException(String message
, Exception innerException
)
37 : base(message
, innerException
) {
38 SetErrorCode(__HResults
.COR_E_SYNCHRONIZATIONLOCK
);
41 protected SynchronizationLockException(SerializationInfo info
, StreamingContext context
) : base (info
, context
) {