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
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Failure.FailureBuilder  
    • Constructor Summary

      Constructors 
      Constructor Description
      Failure()  
      Failure​(java.math.BigInteger cost, ExecutionEffect effect, java.lang.String errorMessage, java.util.List<java.lang.String> transfers)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Failure.FailureBuilder builder()  
      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()
      getter for cost json serialization
      java.util.List<java.lang.String> getTransfers()
      List of Hex-encoded transfer address.
      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)
      setter for cost from json deserialized value
      void setTransfers​(java.util.List<java.lang.String> transfers)
      List of Hex-encoded transfer address.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

      • getJsonCost

        @ExcludeFromJacocoGeneratedReport
        protected java.lang.String getJsonCost()
        getter for cost json serialization
        Returns:
        cost as expected for json serialization
      • setJsonCost

        @ExcludeFromJacocoGeneratedReport
        protected void setJsonCost​(java.lang.String value)
        setter for cost from json deserialized value
        Parameters:
        value - the deserialized value
      • 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.