Skip to content

Commit f1c14f0

Browse files
committed
fix: exception check for methods
1 parent 1204b1f commit f1c14f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ private <T> T withTracing(String spanName, TracedOperation<T> operation) throws
16521652
try (Scope scope = span.makeCurrent()) {
16531653
this.otelContext = Context.current();
16541654
return operation.run(span);
1655-
} catch (Exception ex) {
1655+
} catch (SQLException | RuntimeException ex) {
16561656
span.recordException(ex);
16571657
span.setStatus(StatusCode.ERROR, ex.getMessage());
16581658
throw ex;

0 commit comments

Comments
 (0)