qwen_2.5_model / sdk /php /src /Exceptions /OpenWATimeoutException.php
Muhammad Noman
Deploy OpenWA to Hugging Face Spaces
46252cd
Raw
History Blame Contribute Delete
457 Bytes
<?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;
}
}