![JAR search and dependency download from the Maven repository](/logo.png)
io.neow3j.utils.Assertions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
neow3j: Java/Kotlin/Android Development Toolkit for the Neo Blockchain
package io.neow3j.utils;
/**
* Assertion utility functions.
*/
public class Assertions {
/**
* Verify that the provided precondition holds true.
*
* @param assertionResult assertion value
* @param errorMessage error message if precondition failure
*/
public static void verifyPrecondition(boolean assertionResult, String errorMessage) {
if (!assertionResult) {
throw new RuntimeException(errorMessage);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy