errorCode = $errorCode; $this->sqlState = $sqlState; } /** * {@inheritdoc} */ public function getErrorCode() { /** @psalm-suppress ImpureMethodCall */ Deprecation::triggerIfCalledFromOutside( 'doctrine/dbal', 'https://github.com/doctrine/dbal/pull/4112', 'Driver\AbstractException::getErrorCode() is deprecated, use getSQLState() or getCode() instead.' ); return $this->errorCode; } /** * {@inheritdoc} */ public function getSQLState() { return $this->sqlState; } }