{"record":{"id":"26a74e376a84a327","repo":"apache/shardingsphere","slug":"0-26a74e","errorCode":"0","errorMessage":"Unknown exception.","messagePattern":"Unknown exception\\.","errorType":"exception","errorClass":"UnknownSQLException","httpStatus":null,"severity":"error","filePath":"infra/executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/execute/engine/SQLExecutorExceptionHandler.java","lineNumber":66,"sourceCode":"     * @return throw exception if error occur or not\n     */\n    public static boolean isExceptionThrown() {\n        return IS_EXCEPTION_THROWN.get();\n    }\n    \n    /**\n     * Handle exception. \n     *\n     * @param exception to be handled exception\n     * @throws SQLException SQL exception\n     */\n    public static void handleException(final Exception exception) throws SQLException {\n        if (isExceptionThrown()) {\n            IS_EXCEPTION_THROWN.remove();\n            if (exception instanceof SQLException) {\n                throw (SQLException) exception;\n            }\n            throw new UnknownSQLException(exception).toSQLException();\n        }\n        IS_EXCEPTION_THROWN.remove();\n        log.error(\"exception occur: \", exception);\n    }\n}\n","sourceCodeStart":48,"sourceCodeEnd":72,"githubUrl":"https://github.com/apache/shardingsphere/blob/e952770a215630a3659c75d64369168cd3e26b82/infra/executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/execute/engine/SQLExecutorExceptionHandler.java#L48-L72","documentation":"Error \"Unknown exception.\" thrown in apache/shardingsphere.","triggerScenarios":"SQLExecutorExceptionHandler receives an execution failure with no parseable SQL exception details.","commonSituations":"Driver-level failures during parallel SQL execution where the original exception is not a SQLException.","solutions":["Look up the SQL state and error code in the wrapped exception for the real cause.","Verify the underlying data source is healthy and reachable.","Retry the statement after resolving the root database error."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e952770a215630a3659c75d64369168cd3e26b82","analyzedAt":"2026-08-14T13:54:53.392Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}