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 Summary

      Constructors 
      Constructor Description
      Failure()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.math.BigInteger getCost()
      The cost of executing the deploy.
      ExecutionEffect getEffect()  
      java.lang.String getErrorMessage()
      The error message associated with executing the deploy
      protected java.lang.String getJsonCost()  
      java.util.List<java.lang.String> getTransfers()
      List of Hex-encoded transfer address.
      int hashCode()  
      void setCost​(java.math.BigInteger cost)
      The cost of executing the deploy.
      void setEffect​(ExecutionEffect effect)  
      void setErrorMessage​(java.lang.String errorMessage)
      The error message associated with executing the deploy
      protected void setJsonCost​(java.lang.String value)  
      void setTransfers​(java.util.List<java.lang.String> transfers)
      List of Hex-encoded transfer address.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Failure

        public Failure()
    • Method Detail

      • getCost

        public java.math.BigInteger getCost()
        The cost of executing the deploy.
      • 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.
      • 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.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object