Skip to content

Commit a121e49

Browse files
committed
Patch PostgresConstants error
1 parent c011917 commit a121e49

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

postgresql-plugin/src/main/java/io/cdap/plugin/postgres/PostgresConstants.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@
1616

1717
package io.cdap.plugin.postgres;
1818

19+
import io.cdap.cdap.api.exception.ErrorCategory;
20+
import io.cdap.cdap.api.exception.ErrorType;
21+
import io.cdap.cdap.api.exception.ErrorUtils;
22+
1923
/**
2024
* Postgres constants.
2125
*/
2226
public final class PostgresConstants {
2327

2428
private PostgresConstants() {
25-
throw new AssertionError("Should not instantiate static utility class.");
29+
String errorMessage = "Should not instantiate static utility class.";
30+
throw ErrorUtils.getProgramFailureException(new ErrorCategory(ErrorCategory.ErrorCategoryEnum.PLUGIN),
31+
errorMessage, errorMessage, ErrorType.SYSTEM, false, new AssertionError(errorMessage));
2632
}
2733

2834
public static final String PLUGIN_NAME = "Postgres";

0 commit comments

Comments
 (0)