Class TransactionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TransactionException
    extends java.lang.Exception
    Transaction timeout exception indicates that we have breached some threshold waiting for a transaction to execute.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> getTransactionHash()
      Obtain the transaction hash .
      java.util.Optional<TransactionReceipt> getTransactionReceipt()
      Obtain the transaction receipt.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TransactionException

        public TransactionException​(java.lang.String message)
      • TransactionException

        public TransactionException​(java.lang.String message,
                                    java.lang.String transactionHash)
      • TransactionException

        public TransactionException​(java.lang.String message,
                                    TransactionReceipt transactionReceipt)
      • TransactionException

        public TransactionException​(java.lang.Throwable cause)
    • Method Detail

      • getTransactionHash

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

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