io.opentelemetry.instrumentation.testing.util.ThrowingSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-testing-common Show documentation
Show all versions of opentelemetry-testing-common Show documentation
OpenTelemetry Javaagent testing commons
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.instrumentation.testing.util;
import java.util.function.Supplier;
/**
* A utility interface representing a {@link Supplier} that may throw.
*
* @param Thrown exception type.
*/
@FunctionalInterface
public interface ThrowingSupplier {
T get() throws E;
}