Path: redb/redb.Core/Exceptions/RedbSchemeNameConflictException.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Core/Exceptions/RedbSchemeNameConflictException.cs ---- namespace redb.Core.Exceptions; /// /// Thrown when two CLR types claim the same explicit scheme name. Both types are named in the /// message — the whole point is that neither is more "correct" than the other, and the developer /// has to pick. /// /// Only conflicts involving an explicit Name are fatal. Alias collisions have always been /// resolved last-write-wins and stay that way, so projects that predate explicit names are unaffected. /// /// public class RedbSchemeNameConflictException : Exception { /// The contested scheme name. public string SchemeName { get; } /// The type already registered under this name. public Type ExistingType { get; } /// The type that tried to claim the same name. public Type ConflictingType { get; } public RedbSchemeNameConflictException(string schemeName, Type existingType, Type conflictingType) : base($"Scheme name '{schemeName}' is claimed by two types: " + $"'{existingType.FullName ?? existingType.Name}' and " + $"'{conflictingType.FullName ?? conflictingType.Name}'. " + "A scheme name is unique across the database — rename one of them or drop the explicit Name.") { SchemeName = schemeName; ExistingType = existingType; ConflictingType = conflictingType; } }