Table of Contents

Class DatabaseLockedException

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

databasePath string

Path of the database whose lock could not be acquired.

ownerPid int

PID of the process that holds the lock.

ownerMachine string

Machine name of the process that holds the lock.

startedAt DateTimeOffset

When 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

databasePath string

Path of the database whose lock could not be acquired.

ownerPid int

PID of the process that holds the lock.

ownerMachine string

Machine name of the process that holds the lock.

startedAt DateTimeOffset

When the owning process started.

innerException Exception

The 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

string

OwnerPid

PID of the process that holds the lock.

public int OwnerPid { get; }

Property Value

int

StartedAt

When the owning process started.

public DateTimeOffset StartedAt { get; }

Property Value

DateTimeOffset