namespace ZB.MOM.WW.ScadaBridge.NotificationService;

/// <summary>
/// Signals a permanent SMTP failure (5xx) that should not be retried.
/// </summary>
public class SmtpPermanentException : Exception
{
    /// <summary>
    /// Initializes the exception with a message and optional inner exception.
    /// </summary>
    /// <param name="message">Message describing the permanent SMTP failure.</param>
    /// <param name="innerException">Optional inner exception from the SMTP client.</param>
    public SmtpPermanentException(string message, Exception? innerException = null)
        : base(message, innerException) { }
}
