Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / mscorlib / system / threading / synchronizationlockexception.cs
blob91d4ac3639ce905545567bede3fe6053b27fe0ea
1 // ==++==
2 //
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 //
5 // ==--==
6 //
7 // <OWNER>Microsoft</OWNER>
8 /*=============================================================================
9 **
10 ** Class: SynchronizationLockException
13 ** Purpose: Wait(), Notify() or NotifyAll() was called from an unsynchronized
14 ** block of code.
17 =============================================================================*/
19 namespace System.Threading {
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);
31 public SynchronizationLockException(String message)
32 : base(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) {