query = $query; $this->queryErrors = $queryErrors; parent::__construct($message, $code, $previous); } /** * Returns the query errors * * @since 2.9.2 * * @return string[] */ public function getQueryErrors(): array { return $this->queryErrors; } public function getQuery(): string { return $this->query; } /** * @inheritDoc */ public function getLogContext(): array { return [ 'category' => 'Uncaught database exception', 'Query' => $this->query, 'Query Errors' => $this->queryErrors, ]; } }