namespace JdeScoping.DataAccess.Exceptions; /// /// Exception thrown when a database operation times out. /// public class DataAccessTimeoutException : DataAccessException { /// /// The configured timeout value in seconds. /// public int TimeoutSeconds { get; } /// /// Initializes a new instance of the class. /// /// The error message. /// The configured timeout value in seconds. /// The operation that was being performed. /// The repository where the error occurred. /// The inner exception. public DataAccessTimeoutException( string message, int timeoutSeconds, string? operation = null, string? repository = null, Exception? inner = null) : base(message, operation, repository, inner) { TimeoutSeconds = timeoutSeconds; } }