Module io.hotmoka.node.api
Package io.hotmoka.node.api.responses
Interface FailedTransactionResponse
- All Superinterfaces:
io.hotmoka.marshalling.api.Marshallable,TransactionResponse
- All Known Subinterfaces:
ConstructorCallTransactionFailedResponse,JarStoreTransactionFailedResponse,MethodCallTransactionFailedResponse
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 Summary
Modifier and TypeMethodDescriptionYields the fully-qualified class name of the cause exception.Yields the amount of gas that the transaction consumed for penalty, since it failed.Yields the message of the cause exception.Methods inherited from interface io.hotmoka.marshalling.api.Marshallable
into, size, toByteArrayMethods inherited from interface io.hotmoka.node.api.responses.TransactionResponse
equals, hashCode, toString
-
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
-