Package org.web3j.protocol.exceptions
Class TransactionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.web3j.protocol.exceptions.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
-
-
Constructor Summary
Constructors Constructor Description TransactionException(java.lang.String message)
TransactionException(java.lang.String message, java.lang.String transactionHash)
TransactionException(java.lang.String message, TransactionReceipt transactionReceipt)
TransactionException(java.lang.Throwable cause)
-
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.
-
-
-
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.
-
-