Class Utils
java.lang.Object
io.opentelemetry.api.internal.Utils
General internal utility methods.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckArgument(boolean isValid, String errorMessage) Throws anIllegalArgumentExceptionif the argument is false.
-
Constructor Details
-
Utils
private Utils()
-
-
Method Details
-
checkArgument
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.
-