Interface FailedTransactionResponse

All Superinterfaces:
io.hotmoka.marshalling.api.Marshallable, TransactionResponse
All Known Subinterfaces:
ConstructorCallTransactionFailedResponse, JarStoreTransactionFailedResponse, MethodCallTransactionFailedResponse

public interface FailedTransactionResponse extends TransactionResponse
The response of a failed transaction. This means that the transaction could not be executed until its end. Some gas provided to the transaction has been consumed, as a form of penalty. NOte that transactions that executed some code that threw exceptions allowed by their @@ThrowsException annotation are not considered as failed.
  • Method Details

    • getGasConsumedForPenalty

      BigInteger getGasConsumedForPenalty()
      Yields the amount of gas that the transaction consumed for penalty, since it failed.
      Returns:
      the amount of gas
    • getClassNameOfCause

      String getClassNameOfCause()
      Yields the fully-qualified class name of the cause exception.
      Returns:
      the fully-qualified class name of the cause exception
    • getMessageOfCause

      String getMessageOfCause()
      Yields the message of the cause exception.
      Returns:
      the message of the cause exception