Skip to content

Commit

Permalink
Update Error message to include sql error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
psainics committed Jan 29, 2025
1 parent 50009f4 commit 95073ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ public ProgramFailureException getExceptionDetails(Exception e, ErrorContext err
}

private ProgramFailureException getProgramFailureException(SQLException e, ErrorContext errorContext) {
String errorMessage = e.getMessage();
String errorMessage =
String.format("SQL Exception occurred: [Message='%s', SQLState='%s', ErrorCode='%s'].", e.getMessage(),
e.getSQLState(), e.getErrorCode());
String sqlState = e.getSQLState();
int errorCode = e.getErrorCode();
String errorMessageWithDetails =
Expand Down
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1004,12 +1004,6 @@
<property><name>!cloudBuild</name></property>
</activation>
<modules>
<module>wrangler-transform</module>
<module>google-cloud</module>
<module>kafka-plugins</module>
<module>amazon-s3-plugins</module>
<module>condition-plugins</module>
<module>azure</module>
</modules>
</profile>
<profile>
Expand Down

0 comments on commit 95073ec

Please sign in to comment.