Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / mscorlib / system / threading / synchronizationlockexception.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 //
7 // <OWNER>Microsoft</OWNER>
8 /*=============================================================================
9 **
10 ** Class: SynchronizationLockException
11 **
12 **
13 ** Purpose: Wait(), Notify() or NotifyAll() was called from an unsynchronized
14 **          block of code.
15 **
16 **
17 =============================================================================*/
18
19 namespace System.Threading {
20
21     using System;
22     using System.Runtime.Serialization;
23 [System.Runtime.InteropServices.ComVisible(true)]
24     [Serializable]
25     public class SynchronizationLockException : SystemException {
26         public SynchronizationLockException() 
27             : base(Environment.GetResourceString("Arg_SynchronizationLockException")) {
28             SetErrorCode(__HResults.COR_E_SYNCHRONIZATIONLOCK);
29         }
30     
31         public SynchronizationLockException(String message) 
32             : base(message) {
33             SetErrorCode(__HResults.COR_E_SYNCHRONIZATIONLOCK);
34         }
35     
36         public SynchronizationLockException(String message, Exception innerException) 
37             : base(message, innerException) {
38             SetErrorCode(__HResults.COR_E_SYNCHRONIZATIONLOCK);
39         }
40
41         protected SynchronizationLockException(SerializationInfo info, StreamingContext context) : base (info, context) {
42         }
43     }
44
45 }
46
47