Skip to content

Commit 2c6edb6

Browse files
committed
Fix api breakage
1 parent 31c0a8f commit 2c6edb6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

runtime/protocol/http-client/api/http-client.api

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ public final class aws/smithy/kotlin/runtime/http/interceptors/ResponseLengthVal
425425
}
426426

427427
public final class aws/smithy/kotlin/runtime/http/interceptors/SmokeTestsFailureException : java/lang/Exception {
428+
public fun <init> ()V
428429
public fun <init> (Ljava/lang/String;)V
429430
}
430431

@@ -452,6 +453,7 @@ public final class aws/smithy/kotlin/runtime/http/interceptors/SmokeTestsInterce
452453
}
453454

454455
public final class aws/smithy/kotlin/runtime/http/interceptors/SmokeTestsSuccessException : java/lang/Exception {
456+
public fun <init> ()V
455457
public fun <init> (Ljava/lang/String;)V
456458
}
457459

runtime/protocol/http-client/common/src/aws/smithy/kotlin/runtime/http/interceptors/SmokeTestsInterceptor.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ public class SmokeTestsInterceptor : HttpInterceptor {
2323
}
2424
}
2525

26-
@InternalApi public class SmokeTestsFailureException(message: String) : Exception(message)
26+
@InternalApi public class SmokeTestsFailureException(message: String) : Exception(message) {
27+
public constructor() : this("Smoke test failed with HTTP status code in the inclusive range: 400-599")
28+
}
29+
30+
@InternalApi public class SmokeTestsSuccessException(message: String) : Exception(message) {
31+
public constructor() : this("Smoke test succeeded with HTTP status code in the inclusive range: 200-599")
32+
}
2733

28-
@InternalApi public class SmokeTestsSuccessException(message: String) : Exception(message)
2934
private class SmokeTestsUnexpectedException(message: String) : Exception(message)

0 commit comments

Comments
 (0)