Package io.opentelemetry.api.internal
Class Utils
- java.lang.Object
-
- io.opentelemetry.api.internal.Utils
-
@Immutable public final class Utils extends Object
General internal utility methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckArgument(boolean isValid, String errorMessage)Throws anIllegalArgumentExceptionif the argument is false.
-
-
-
Method Detail
-
checkArgument
public static void checkArgument(boolean isValid, String errorMessage)Throws anIllegalArgumentExceptionif the argument is false. This method is similar toPreconditions.checkArgument(boolean, Object)from Guava.- Parameters:
isValid- whether the argument check passed.errorMessage- the message to use for the exception.
-
-