Class RedbSchemeNameTakenException

Assembly: redb.Core.dll

Thrown when a type wants to rename its scheme to an explicit name that another scheme in the
database already occupies. Raised instead of letting the UNIQUE(_name) violation surface as a
provider-specific error code (23505 / 2627 / SQLITE_CONSTRAINT_UNIQUE), and the database is left
untouched.

public class RedbSchemeNameTakenException : Exception, ISerializable

Inheritance

Object→Exception→RedbSchemeNameTakenException

Implements

Properties

DeclaringType

The type that asked for the name.

public Type DeclaringType { get; }

OccupiedBySchemeId

Id of the scheme already holding the name.

public long OccupiedBySchemeId { get; }

SchemeName

The contested scheme name.

public string SchemeName { get; }

Constructors

RedbSchemeNameTakenException(Type, string, long, string, long)

The type resolves to two different schemes at once: one already carries the explicit name, and