Spaces:
Sleeping
Sleeping
File size: 743 Bytes
097eaf0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | <?php
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;
}
}
|