public static BlockStateCallError of(final TransactionInvalidReason transactionInvalidReason) {
    return switch (transactionInvalidReason) {
      case UPFRONT_COST_EXCEEDS_BALANCE -> UPFRONT_COST_EXCEEDS_BALANCE;
      case GAS_PRICE_TOO_LOW -> GAS_PRICE_TOO_LOW;
      case INTRINSIC_GAS_EXCEEDS_GAS_LIMIT -> INTRINSIC_GAS_EXCEEDS_GAS_LIMIT;
      default -> UNKNOWN;
    };
  }
Returns the error message.

@param transactionInvalidReason The transaction invalid reason.
@return The error message.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/transaction/exceptions/BlockStateCallError.java