{"record":{"id":"c289a2993a031f35","repo":"OtterMind/Chat2DB","slug":"mysql-account-scoperequired","errorCode":"mysql.account.scopeRequired","errorMessage":"mysql.account.scopeRequired","messagePattern":"mysql\\.account\\.scopeRequired","errorType":"exception","errorClass":"BusinessException","httpStatus":null,"severity":"error","filePath":"chat2db-community-server/chat2db-community-domain/chat2db-community-domain-api/src/main/java/ai/chat2db/community/domain/api/enums/plugin/PrivilegeScopeEnum.java","lineNumber":12,"sourceCode":"package ai.chat2db.community.domain.api.enums.plugin;\n\nimport ai.chat2db.community.tools.exception.BusinessException;\n\npublic enum PrivilegeScopeEnum {\n    GLOBAL,\n    DATABASE,\n    TABLE;\n\n    public static PrivilegeScopeEnum from(String value) {\n        if (value == null) {\n            throw new BusinessException(\"mysql.account.scopeRequired\");\n        }\n        try {\n            return valueOf(value);\n        } catch (IllegalArgumentException e) {\n            throw new BusinessException(\"mysql.account.scopeUnsupported\", null, e);\n        }\n    }\n}\n","sourceCodeStart":1,"sourceCodeEnd":21,"githubUrl":"https://github.com/OtterMind/Chat2DB/blob/5ee1e990e73fbcae1969dc554be254fedb3ab888/chat2db-community-server/chat2db-community-domain/chat2db-community-domain-api/src/main/java/ai/chat2db/community/domain/api/enums/plugin/PrivilegeScopeEnum.java#L1-L21","documentation":"Error \"mysql.account.scopeRequired\" thrown in OtterMind/Chat2DB.","triggerScenarios":"A MySQL privilege operation was requested without a scope.","commonSituations":"See trigger scenarios.","solutions":["Specify a privilege scope (global, database, or table) for the grant/revoke request."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ee1e990e73fbcae1969dc554be254fedb3ab888","analyzedAt":"2026-08-14T07:05:03.077Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}