, text:string} $responseCode */ public function __construct( private readonly string $command, private readonly string $status, private readonly string $text, private readonly ?array $responseCode = null, ) { parent::__construct($command . ' failed: ' . $text); } public function command(): string { return $this->command; } public function status(): string { return $this->status; } public function text(): string { return $this->text; } /** * The code from the tagged completion, if present. * * @return ?array{name:string, arguments:list, text:string} */ public function responseCode(): ?array { return $this->responseCode; } }