Class ContractException

All Implemented Interfaces:
Serializable

public class ContractException extends GatewayException
Thrown when an error occurs invoking a smart contract.
See Also:
  • Constructor Details

    • ContractException

      public ContractException(String message)
      Constructs a new exception with the specified detail message. The cause and payload are not initialized.
      Parameters:
      message - the detail message.
    • ContractException

      public ContractException(String message, Throwable cause)
      Constructs a new exception with the specified detail message and cause. The payload is not initialized.
      Parameters:
      message - the detail message.
      cause - the cause.
    • ContractException

      public ContractException(String message, Collection<org.hyperledger.fabric.sdk.ProposalResponse> proposalResponses)
      Constructs a new exception with the specified detail message and proposal responses returned from peer invocations. The cause is not initialized.
      Parameters:
      message - the detail message.
      proposalResponses - the proposal responses.
  • Method Details

    • getProposalResponses

      public Collection<org.hyperledger.fabric.sdk.ProposalResponse> getProposalResponses()
      Get the proposal responses received from peer invocations.
      Returns:
      the proposal responses.
    • setProposalResponses

      public void setProposalResponses(Collection<org.hyperledger.fabric.sdk.ProposalResponse> proposalResponses)
      Set the proposal responses received from peer invocations.
      Parameters:
      proposalResponses - the proposal responses.