Skip to content

Commit e35d102

Browse files
Cleanup duplicate Exception throws. (#10327)
1 parent 6d2b809 commit e35d102

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

dd-java-agent/instrumentation/akka/akka-http/akka-http-10.0/src/main/java/datadog/trace/instrumentation/akkahttp/DatadogServerRequestResponseFlowWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void onUpstreamFinish() throws Exception {
102102
}
103103

104104
@Override
105-
public void onUpstreamFailure(final Throwable ex) throws Exception, Exception {
105+
public void onUpstreamFailure(final Throwable ex) throws Exception {
106106
// We will not receive any more requests from the server and TCP layer so stop
107107
// sending them
108108
fail(requestOutlet, ex);

dd-java-agent/instrumentation/akka/akka-http/akka-http-10.0/src/main/java/datadog/trace/instrumentation/akkahttp/MarkSpanAsErroredPF.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private MarkSpanAsErroredPF() {}
2121

2222
@Override
2323
public Function1<RequestContext, Future<RouteResult>> apply(Throwable x, boolean isCheck)
24-
throws Exception, Exception {
24+
throws Exception {
2525
AgentSpan agentSpan = AgentTracer.activeSpan();
2626
if (agentSpan != null) {
2727
agentSpan.addThrowable(x);

dd-java-agent/instrumentation/pekko/pekko-http-1.0/src/main/java/datadog/trace/instrumentation/pekkohttp/DatadogServerRequestResponseFlowWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void onUpstreamFinish() throws Exception {
8282
}
8383

8484
@Override
85-
public void onUpstreamFailure(final Throwable ex) throws Exception, Exception {
85+
public void onUpstreamFailure(final Throwable ex) throws Exception {
8686
// We will not receive any more requests from the server and TCP layer so stop
8787
// sending them
8888
fail(requestOutlet, ex);

0 commit comments

Comments
 (0)