commonMain.aws.sdk.kotlin.hll.dynamodbmapper.pipeline.internal.ContextUtils.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dynamodb-mapper-jvm Show documentation
Show all versions of dynamodb-mapper-jvm Show documentation
High level DynamoDbMapper client
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.sdk.kotlin.hll.dynamodbmapper.pipeline.internal
internal interface Combinable {
operator fun plus(value: V): T
}
internal interface ErrorCombinable {
val error: Throwable?
operator fun plus(e: Throwable?): T
}
internal fun Throwable?.suppressing(e: Throwable?) = this?.apply { e?.let(::addSuppressed) } ?: e