Skip to content

Commit

Permalink
Merge branch 'main' into waiters
Browse files Browse the repository at this point in the history
  • Loading branch information
hpmellema authored Jan 31, 2025
2 parents 182a89b + cc71793 commit b3b3534
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

package software.amazon.smithy.java.client.core;

import java.io.IOException;
import java.io.InterruptedIOException;
import java.net.ConnectException;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.util.concurrent.CompletableFuture;
import software.amazon.smithy.java.context.Context;

Expand All @@ -25,6 +30,22 @@ public interface ClientTransport<RequestT, ResponseT> extends ClientPlugin {
/**
* Send a prepared request.
*
* <p>Transports must only <strong>must</strong> throw exceptions from Java's standard library or exceptions that
* subclass them, including but not limited to:
*
* <ul>
* <li>{@link IOException}</li>
* <li>{@link SocketException}</li>
* <li>{@link SocketTimeoutException}</li>
* <li>{@link ConnectException}</li>
* <li>{@link InterruptedIOException}</li>
* <li>{@link InterruptedException}</li>
* </ul>
*
* <p>Transports that do not use these standard Java exceptions or subclass from them <strong>must</strong>
* wrap transport-specific exceptions into these types to ensure that changing the transport of a client doesn't
* impact the user-facing API of a client call.
*
* @param context Call context.
* @param request Request to send.
* @return a CompletableFuture that is completed with the response.
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ assertj = "3.27.3"
jackson = "2.18.2"
netty = "4.1.117.Final"
dep-analysis = "2.7.0"
aws-sdk = "2.30.3"
aws-sdk = "2.30.8"
osdetector = "1.7.3"
accp = "2.4.1" # Amazon Corretto Crypto Provider

Expand Down

0 comments on commit b3b3534

Please sign in to comment.