Class Assertions

java.lang.Object
org.nervos.ckb.utils.Assertions

public class Assertions
extends java.lang.Object
Assertion utility functions.
  • Constructor Summary

    Constructors 
    Constructor Description
    Assertions()  
  • Method Summary

    Modifier and Type Method Description
    static void verifyPrecondition​(boolean assertionResult, java.lang.String errorMessage)
    Verify that the provided precondition holds true.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • verifyPrecondition

      public static void verifyPrecondition​(boolean assertionResult, java.lang.String errorMessage)
      Verify that the provided precondition holds true.
      Parameters:
      assertionResult - assertion value
      errorMessage - error message if precondition failure