diff options
Diffstat (limited to 'src/mscorlib/src/System/Threading/LockRecursionException.cs')
-rw-r--r-- | src/mscorlib/src/System/Threading/LockRecursionException.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/Threading/LockRecursionException.cs b/src/mscorlib/src/System/Threading/LockRecursionException.cs new file mode 100644 index 0000000000..c5e3146cbc --- /dev/null +++ b/src/mscorlib/src/System/Threading/LockRecursionException.cs @@ -0,0 +1,34 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +/*============================================================ +// +// +// +// Purpose: +// This exception represents a failed attempt to recursively +// acquire a lock, because the particular lock kind doesn't +// support it in its current state. +============================================================*/ + +namespace System.Threading +{ + using System; + using System.Runtime.Serialization; + using System.Runtime.CompilerServices; + + [Serializable] + [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] +#if !FEATURE_CORECLR + [TypeForwardedFrom("System.Core, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=b77a5c561934e089")] +#endif + public class LockRecursionException : System.Exception + { + public LockRecursionException() { } + public LockRecursionException(string message) : base(message) { } + protected LockRecursionException(SerializationInfo info, StreamingContext context) : base(info, context) { } + public LockRecursionException(string message, Exception innerException) : base(message, innerException) { } + } + +} |