
io.opentelemetry.instrumentation.test.utils.ExceptionUtils Maven / Gradle / Ivy
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.instrumentation.test.utils;
public class ExceptionUtils {
static RuntimeException sneakyThrow(Throwable t) {
if (t == null) {
throw new NullPointerException("t");
}
return ExceptionUtils.sneakyThrow0(t);
}
private static T sneakyThrow0(Throwable t) throws T {
throw (T) t;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy