error = $error; parent::__construct( $message, $code, $previous, $context ); } /** * Returns the API error details. * * @return string[]|null Error details returned by the API. */ public function getError(): ?array { return $this->error; } }