Search in sources :

Example 1 with ApiCallTimeoutException

use of software.amazon.awssdk.core.exception.ApiCallTimeoutException in project aws-sdk-java-v2 by aws.

the class ExceptionReportingUtilsTest method modifyException_shouldReturnModifiedException.

@Test
public void modifyException_shouldReturnModifiedException() {
    ApiCallTimeoutException modifiedException = ApiCallTimeoutException.create(1000);
    RequestExecutionContext context = context(new ModifyExceptionInterceptor(modifiedException));
    assertThat(ExceptionReportingUtils.reportFailureToInterceptors(context, SdkClientException.create("test"))).isEqualTo(modifiedException);
}
Also used : ApiCallTimeoutException(software.amazon.awssdk.core.exception.ApiCallTimeoutException) RequestExecutionContext(software.amazon.awssdk.core.internal.http.RequestExecutionContext) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 ApiCallTimeoutException (software.amazon.awssdk.core.exception.ApiCallTimeoutException)1 RequestExecutionContext (software.amazon.awssdk.core.internal.http.RequestExecutionContext)1