Spaces:
Runtime error
Runtime error
File size: 457 Bytes
46252cd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <?php
declare(strict_types=1);
namespace OpenWA\Exceptions;
/** Raised when a request exceeds the configured timeout. */
class OpenWATimeoutException extends OpenWAException
{
private float $timeout;
public function __construct(float $timeout)
{
parent::__construct("Request timed out after {$timeout}s");
$this->timeout = $timeout;
}
public function getTimeout(): float
{
return $this->timeout;
}
}
|