Class LockHeldException

Namespace
Kuestenlogik.Bowire.Workspace.Git
Assembly
Kuestenlogik.Bowire.Workspace.Git.dll

Thrown by AcquireAsync(string, string, CancellationToken) when another live writer holds the workspace lock. Carries the holder's metadata so the caller can surface a friendly "process <pid> on <host> started at <timestamp>" diagnostic without re-reading the file.

public sealed class LockHeldException : InvalidOperationException, ISerializable
Inheritance
LockHeldException
Implements
Inherited Members

Constructors

LockHeldException()

Parameterless constructor required by the analyzer for serializable exceptions.

public LockHeldException()

LockHeldException(string)

Create with just a message.

public LockHeldException(string message)

Parameters

message string

LockHeldException(string, Exception)

Create with a message and an inner exception.

public LockHeldException(string message, Exception inner)

Parameters

message string
inner Exception

LockHeldException(string, WorkspaceLockInfo?)

Create the exception with a message + (optional) holder metadata.

public LockHeldException(string message, WorkspaceLockInfo? holder)

Parameters

message string
holder WorkspaceLockInfo?

Properties

Holder

Holder metadata, when readable; null when the file was unreadable.

public WorkspaceLockInfo? Holder { get; }

Property Value

WorkspaceLockInfo?