{"record":{"id":"48316ecf1be95b7f","repo":"floci-io/floci","slug":"applicationalreadyexistsexception","errorCode":"ApplicationAlreadyExistsException","errorMessage":"Application already exists:  \" + name","messagePattern":"Application already exists:  \" \\+ name","errorType":"exception","errorClass":"AwsException","httpStatus":400,"severity":"error","filePath":"src/main/java/io/github/hectorvent/floci/services/codedeploy/CodeDeployService.java","lineNumber":312,"sourceCode":"                cfg.setMinimumHealthyHosts(Map.of(\"type\", \"HOST_COUNT\", \"value\", 1));\n            }\n        }\n        return cfg;\n    }\n\n    private int extractMinutes(String name) {\n        // e.g. \"…Every1Minute\" -> 1, \"…5Minutes\" -> 5\n        java.util.regex.Matcher m = java.util.regex.Pattern.compile(\"(\\\\d+)Minute\").matcher(name);\n        return m.find() ? Integer.parseInt(m.group(1)) : 1;\n    }\n\n    // ---- Applications ----\n\n    public Application createApplication(String region, String name, String computePlatform,\n                                          List<Map<String, String>> tags) {\n        Map<String, Application> store = applicationsFor(region);\n        if (store.containsKey(name)) {\n            throw new AwsException(\"ApplicationAlreadyExistsException\",\n                    \"Application already exists: \" + name, 400);\n        }\n        Application app = new Application();\n        app.setApplicationId(UUID.randomUUID().toString());\n        app.setApplicationName(name);\n        app.setCreateTime(Instant.now().toEpochMilli() / 1000.0);\n        app.setLinkedToGitHub(false);\n        app.setComputePlatform(computePlatform != null ? computePlatform : \"Server\");\n        store.put(name, app);\n        persistRegion(applications, region);\n\n        if (tags != null && !tags.isEmpty()) {\n            String arn = applicationArn(region, name);\n            applyTags(arn, tags);\n        }\n        return app;\n    }\n","sourceCodeStart":294,"sourceCodeEnd":330,"githubUrl":"https://github.com/floci-io/floci/blob/62ff490619e7bd3554597c28c704081b4c15add5/src/main/java/io/github/hectorvent/floci/services/codedeploy/CodeDeployService.java#L294-L330","documentation":"Error \"Application already exists:  \" + name\" thrown in floci-io/floci.","triggerScenarios":"Thrown at src/main/java/io/github/hectorvent/floci/services/codedeploy/CodeDeployService.java:312 when the library encounters an invalid state.","commonSituations":"Occurs when creating a CodeDeploy application with a name that already exists. Choose a unique application name or reuse the existing application.","solutions":["Choose a different application name or delete the existing application first."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"62ff490619e7bd3554597c28c704081b4c15add5","analyzedAt":"2026-08-14T14:25:23.764Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}