File "TimeoutException.php"
Full path: /home/webcknlt/admissiontell.com/wp-content/plugins/vibes/includes/libraries/lock/exception/TimeoutException.php
File
size: 740 B (740 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
declare(strict_types=1);
namespace malkusch\lock\exception;
/**
* Timeout exception.
*
* A timeout has been exceeded exception. Should only be used in contexts where
* the lock is being acquired.
*
* @author Markus Malkusch <markus@malkusch.de>
* @link bitcoin:1P5FAZ4QhXCuwYPnLZdk3PJsqePbu1UDDA Donations
* @license WTFPL
*/
class TimeoutException extends LockAcquireException
{
/**
* Creates a new instance of the TimeoutException class.
*
* @param int $timeout The timeout in seconds.
* @return self A timeout has been exceeded exception.
*/
public static function create(int $timeout): self
{
return new self(\sprintf('Timeout of %d seconds exceeded.', $timeout));
}
}