{"record":{"id":"9e40c02fe6a729c3","repo":"yiisoft/yii2","slug":"error","errorCode":null,"errorMessage":"{}","messagePattern":"\\{\\}","errorType":"exception","errorClass":"yii\\db\\Exception","httpStatus":null,"severity":"error","filePath":"framework/db/Connection.php","lineNumber":651,"sourceCode":"                Yii::info($token, __METHOD__);\n            }\n\n            if ($enableProfiling) {\n                Yii::beginProfile($token, __METHOD__);\n            }\n\n            $this->pdo = $this->createPdoInstance();\n            $this->initConnection();\n\n            if ($enableProfiling) {\n                Yii::endProfile($token, __METHOD__);\n            }\n        } catch (\\PDOException $e) {\n            if ($enableProfiling) {\n                Yii::endProfile($token, __METHOD__);\n            }\n\n            throw new Exception($e->getMessage(), $e->errorInfo, $e->getCode(), $e);\n        }\n    }\n\n    /**\n     * Closes the currently active DB connection.\n     * It does nothing if the connection is already closed.\n     */\n    public function close()\n    {\n        if ($this->_master) {\n            if ($this->pdo === $this->_master->pdo) {\n                $this->pdo = null;\n            }\n\n            $this->_master->close();\n            $this->_master = false;\n        }\n","sourceCodeStart":633,"sourceCodeEnd":669,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/db/Connection.php#L633-L669","documentation":"Error \"{}\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/db/Connection.php:651 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"66f00d18a29b520f85e8e8f1e32d1e7e7b556cac","analyzedAt":"2026-08-17T05:17:23.470Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}