Class DatabaseLockedException
Thrown when a database file is already locked by another process.
public class DatabaseLockedException : StorageException, ISerializable
- Inheritance
-
DatabaseLockedException
- Implements
- Inherited Members
Constructors
DatabaseLockedException(string, int, string, DateTimeOffset)
Creates a new DatabaseLockedException describing the process that currently owns the lock.
public DatabaseLockedException(string databasePath, int ownerPid, string ownerMachine, DateTimeOffset startedAt)
Parameters
databasePathstringPath of the database whose lock could not be acquired.
ownerPidintPID of the process that holds the lock.
ownerMachinestringMachine name of the process that holds the lock.
startedAtDateTimeOffsetWhen the owning process started.
DatabaseLockedException(string, int, string, DateTimeOffset, Exception)
Creates a new DatabaseLockedException describing the owning process, wrapping the underlying failure.
public DatabaseLockedException(string databasePath, int ownerPid, string ownerMachine, DateTimeOffset startedAt, Exception innerException)
Parameters
databasePathstringPath of the database whose lock could not be acquired.
ownerPidintPID of the process that holds the lock.
ownerMachinestringMachine name of the process that holds the lock.
startedAtDateTimeOffsetWhen the owning process started.
innerExceptionExceptionThe underlying exception raised while attempting to acquire the lock.
Properties
OwnerMachine
Machine name of the process that holds the lock.
public string OwnerMachine { get; }
Property Value
OwnerPid
PID of the process that holds the lock.
public int OwnerPid { get; }
Property Value
StartedAt
When the owning process started.
public DateTimeOffset StartedAt { get; }