Class RevertMessageParser

java.lang.Object
org.fisco.bcos.sdk.transaction.codec.decode.RevertMessageParser

public class RevertMessageParser
extends java.lang.Object
  • Field Details

  • Constructor Details

  • Method Details

    • isOutputStartWithRevertMethod

      public static boolean isOutputStartWithRevertMethod​(java.lang.String output)
      Does output start with the code of the Revert method, If so, the output may be error message
      Parameters:
      output - the string of output
      Returns:
      true/false
    • hasRevertMessage

      public static boolean hasRevertMessage​(java.lang.String status, java.lang.String output)
      Parameters:
      status - the status of the receipt
      output - the output of the receipt
      Returns:
      true/false
    • tryResolveRevertMessage

      public static Tuple2<java.lang.Boolean,​java.lang.String> tryResolveRevertMessage​(java.lang.String status, java.lang.String output)
      Parameters:
      status - the transaction receipt status
      output - the output of the transaction receipt
      Returns:
      the resolved revert message information
    • tryResolveRevertMessage

      public static Tuple2<java.lang.Boolean,​java.lang.String> tryResolveRevertMessage​(TransactionReceipt receipt)
      Parameters:
      receipt - the receipt need to be parsed
      Returns:
      the resolved revert message information