Class Failure

  • All Implemented Interfaces:
    ExecutionResult

    public class Failure
    extends java.lang.Object
    implements ExecutionResult
    Abstract Executable Result of type Failure containing the details of the contract execution. It shows the result of a failed execution
    Since:
    0.0.1
    See Also:
    ExecutionResult
    • Constructor Detail

      • Failure

        public Failure​(java.math.BigInteger cost,
                       ExecutionEffect effect,
                       java.lang.String errorMessage,
                       java.util.List<java.lang.String> transfers)
      • Failure

        public Failure()
    • Method Detail

      • getCost

        public java.math.BigInteger getCost()
        The cost of executing the deploy.
        Specified by:
        getCost in interface ExecutionResult
      • getErrorMessage

        public java.lang.String getErrorMessage()
        The error message associated with executing the deploy
      • getTransfers

        public java.util.List<java.lang.String> getTransfers()
        List of Hex-encoded transfer address.
      • setCost

        public void setCost​(java.math.BigInteger cost)
        The cost of executing the deploy.
        Specified by:
        setCost in interface ExecutionResult
      • setErrorMessage

        public void setErrorMessage​(java.lang.String errorMessage)
        The error message associated with executing the deploy
      • setTransfers

        public void setTransfers​(java.util.List<java.lang.String> transfers)
        List of Hex-encoded transfer address.