Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prefix to error code #2444

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}
Loading