Class TransactionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.web3j.protocol.exceptions.TransactionException
All Implemented Interfaces:
Serializable

public class TransactionException extends Exception
Transaction timeout exception indicates that we have breached some threshold waiting for a transaction to execute.
See Also:
  • Constructor Details

    • TransactionException

      public TransactionException(String message)
    • TransactionException

      public TransactionException(String message, String transactionHash)
    • TransactionException

      public TransactionException(String message, TransactionReceipt transactionReceipt)
    • TransactionException

      public TransactionException(Throwable cause)
  • Method Details

    • getTransactionHash

      public Optional<String> getTransactionHash()
      Obtain the transaction hash .
      Returns:
      optional transaction hash .
    • getTransactionReceipt

      public Optional<TransactionReceipt> getTransactionReceipt()
      Obtain the transaction receipt.
      Returns:
      optional transaction receipt.