HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: /var/www/html/wp-content/plugins/wordpress-seo/src/exceptions/locking/lock-timeout-exception.php
<?php

namespace Yoast\WP\SEO\Exceptions\Locking;

use RuntimeException;

/**
 * Exception for when a lock cannot be acquired within the allowed number of attempts.
 */
class Lock_Timeout_Exception extends RuntimeException {

	/**
	 * The constructor.
	 *
	 * @param string $lock_key The lock key that could not be acquired.
	 * @param int    $attempts The number of attempts made.
	 */
	public function __construct( string $lock_key, int $attempts ) {
		parent::__construct( "Failed to acquire lock '{$lock_key}' after {$attempts} attempts." );
	}
}