$details */ public function __construct( string $message, private readonly string $connectCode, private readonly int $httpStatus, private readonly array $details = [], private readonly string $rawBody = '', ?Throwable $previous = null, ) { parent::__construct($message, 0, $previous); } public function connectCode(): string { return $this->connectCode; } public function httpStatus(): int { return $this->httpStatus; } /** * @return list */ public function details(): array { return $this->details; } public function rawBody(): string { return $this->rawBody; } }