Yoast\WP\SEO\Exceptions\Locking
Lock_Timeout_Exception::__construct
The constructor.
Метод класса: Lock_Timeout_Exception{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Lock_Timeout_Exception = new Lock_Timeout_Exception(); $Lock_Timeout_Exception->__construct( $lock_key, $attempts );
- $lock_key(строка) (обязательный)
- The lock key that could not be acquired.
- $attempts(int) (обязательный)
- The number of attempts made.
Код Lock_Timeout_Exception::__construct() Lock Timeout Exception:: construct Yoast 27.7
public function __construct( string $lock_key, int $attempts ) {
parent::__construct( "Failed to acquire lock '{$lock_key}' after {$attempts} attempts." );
}