Skip to content

Commit

Permalink
Add prefix to error code
Browse files Browse the repository at this point in the history
  • Loading branch information
brfrn169 committed Dec 26, 2024
1 parent 7faf7a5 commit 6229a61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ public enum CoreError implements ScalarDbError {
""),
;

private static final String COMPONENT_NAME = "CORE";
private static final String COMPONENT_NAME = "DB-CORE";

private final Category category;
private final String id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void buildCode_ShouldBuildCorrectCode() {
String code = error.buildCode();

// Assert
Assertions.assertThat(code).isEqualTo("CORE-10000");
Assertions.assertThat(code).isEqualTo("DB-CORE-10000");
}

@Test
Expand All @@ -43,6 +43,6 @@ public void buildMessage_ShouldBuildCorrectMessage() {

// Assert
Assertions.assertThat(message)
.isEqualTo("CORE-10000: Only a single-column index is supported. Operation: " + put);
.isEqualTo("DB-CORE-10000: Only a single-column index is supported. Operation: " + put);
}
}

0 comments on commit 6229a61

Please sign in to comment.