类 Assertions

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

public class Assertions
extends java.lang.Object
Assertion utility functions.
  • 构造器概要

    构造器 
    构造器 说明
    Assertions()  
  • 方法概要

    修饰符和类型 方法 说明
    static void verifyPrecondition​(boolean assertionResult, java.lang.String errorMessage)
    Verify that the provided precondition holds true.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

  • 方法详细资料

    • verifyPrecondition

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