Skip to content

Commit

Permalink
misc: added cause to unsupported signing algorithm exception (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
0marperez authored Feb 15, 2024
1 parent db1d4d4 commit fcde0c3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions runtime/auth/aws-signing-common/api/aws-signing-common.api
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ public final class aws/smithy/kotlin/runtime/auth/awssigning/PresignerKt {

public final class aws/smithy/kotlin/runtime/auth/awssigning/UnsupportedSigningAlgorithmException : aws/smithy/kotlin/runtime/ClientException {
public fun <init> (Ljava/lang/String;Laws/smithy/kotlin/runtime/auth/awssigning/AwsSigningAlgorithm;)V
public fun <init> (Ljava/lang/String;Laws/smithy/kotlin/runtime/auth/awssigning/AwsSigningAlgorithm;Ljava/lang/Throwable;)V
public synthetic fun <init> (Ljava/lang/String;Laws/smithy/kotlin/runtime/auth/awssigning/AwsSigningAlgorithm;Ljava/lang/Throwable;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun getSigningAlgorithm ()Laws/smithy/kotlin/runtime/auth/awssigning/AwsSigningAlgorithm;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,25 @@ import aws.smithy.kotlin.runtime.InternalApi
*
* See: [AwsSigningAlgorithm], [AwsSigner]
*
* @param isSigV4a Whether the unsupported signing algorithm is sigV4a
* @param message The message displayed by the exception
* @param signingAlgorithm The unsupported signing algorithm
* @param cause The cause of the exception
*/
@InternalApi
public class UnsupportedSigningAlgorithmException(
message: String,
public val signingAlgorithm: AwsSigningAlgorithm,
) : ClientException(message)
cause: Throwable? = null,
) : ClientException(
message,
cause,
) {
public constructor(
message: String,
signingAlgorithm: AwsSigningAlgorithm,
) : this (
message,
signingAlgorithm,
null,
)
}

0 comments on commit fcde0c3

Please sign in to comment.