Spaces:
Sleeping
Sleeping
Download apps/php-sdk/src/Exceptions/FirecrawlException.php from s-eto-hub/firecrawl-api: direct link, hf CLI and curl.
- Browser
- Download file 743 Bytes
-
https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/php-sdk/src/Exceptions/FirecrawlException.php
- Command line
-
hf download hf://spaces/s-eto-hub/firecrawl-api/apps/php-sdk/src/Exceptions/FirecrawlException.php
-
curl -L -o FirecrawlException.php https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/php-sdk/src/Exceptions/FirecrawlException.php
743 Bytes
| declare(strict_types=1); | |
| namespace Firecrawl\Exceptions; | |
| use RuntimeException; | |
| use Throwable; | |
| class FirecrawlException extends RuntimeException | |
| { | |
| public function __construct( | |
| string $message = '', | |
| private readonly int $statusCode = 0, | |
| private readonly ?string $errorCode = null, | |
| private readonly mixed $details = null, | |
| ?Throwable $previous = null, | |
| ) { | |
| parent::__construct($message, $statusCode, $previous); | |
| } | |
| public function getStatusCode(): int | |
| { | |
| return $this->statusCode; | |
| } | |
| public function getErrorCode(): ?string | |
| { | |
| return $this->errorCode; | |
| } | |
| public function getDetails(): mixed | |
| { | |
| return $this->details; | |
| } | |
| } | |