Spaces:
Sleeping
Sleeping
Download apps/php-sdk/src/Exceptions/JobTimeoutException.php from s-eto-hub/firecrawl-api: direct link, hf CLI and curl.
- Browser
- Download file 612 Bytes
-
https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/php-sdk/src/Exceptions/JobTimeoutException.php
- Command line
-
hf download hf://spaces/s-eto-hub/firecrawl-api/apps/php-sdk/src/Exceptions/JobTimeoutException.php
-
curl -L -o JobTimeoutException.php https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/php-sdk/src/Exceptions/JobTimeoutException.php
612 Bytes
| declare(strict_types=1); | |
| namespace Firecrawl\Exceptions; | |
| class JobTimeoutException extends FirecrawlException | |
| { | |
| public function __construct( | |
| private readonly string $jobId, | |
| private readonly int $timeoutSeconds, | |
| string $jobType = 'Job', | |
| ) { | |
| parent::__construct( | |
| "{$jobType} {$jobId} timed out after {$timeoutSeconds} seconds", | |
| statusCode: 408, | |
| ); | |
| } | |
| public function getJobId(): string | |
| { | |
| return $this->jobId; | |
| } | |
| public function getTimeoutSeconds(): int | |
| { | |
| return $this->timeoutSeconds; | |
| } | |
| } | |