namespace ZB.MOM.WW.LocalDb.Registration;

/// <summary>
/// Thrown when a table cannot be opted into replication: the name is unsafe, the table does
/// not exist, or it has no explicit primary key (required for stable per-row capture keys).
/// </summary>
public sealed class LocalDbRegistrationException : Exception
{
    /// <summary>Creates the exception with a message describing why registration was rejected.</summary>
    public LocalDbRegistrationException(string message) : base(message) { }

    /// <summary>Creates the exception with a message and the underlying cause.</summary>
    public LocalDbRegistrationException(string message, Exception innerException)
        : base(message, innerException) { }
}
