Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Deadlock­Exception Class

DeadlockException Class

Exception thrown by the DeadlockDetectionPolicy class when a deadlock is detected.
Inheritance Hierarchy
System.Object
  System.Exception
    PostSharp.Patterns.Threading.ThreadingException
      PostSharp.Patterns.Threading.DeadlockException

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 5.0.39.0 (5.0.39.0)
Syntax
C#
[SerializableAttribute]
public sealed class DeadlockException : ThreadingException

The DeadlockException type exposes the following members.

Constructors
  NameDescription
Public methodDeadlockException()
Initializes a new instance of see cref="DeadlockException"/>.
Public methodDeadlockException(String)
Initializes a new instance of see cref="DeadlockException"/>.
Public methodDeadlockException(DeadlockInfo)
Initializes a new instance of DeadlockException and specifies the message and involved threads.
Public methodDeadlockException(String, Exception)
Initializes a new instance of see cref="DeadlockException"/>.
Properties
  NameDescription
Public propertyDeadlockInfo
Gets an information about the deadlock.
Methods
  NameDescription
Public methodGetObjectData
When overridden in a derived class, sets the SerializationInfo with information about the exception.
(Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).)
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also