public class ContractException extends GatewayException
构造器和说明 |
---|
ContractException(String message)
Constructs a new exception with the specified detail message.
|
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.
|
ContractException(String message,
Throwable cause)
Constructs a new exception with the specified detail message and cause.
|
限定符和类型 | 方法和说明 |
---|---|
Collection<org.hyperledger.fabric.sdk.ProposalResponse> |
getProposalResponses()
Get the proposal responses received from peer invocations.
|
void |
setProposalResponses(Collection<org.hyperledger.fabric.sdk.ProposalResponse> proposalResponses)
Set the proposal responses received from peer invocations.
|
public ContractException(String message)
message
- the detail message.public ContractException(String message, Throwable cause)
message
- the detail message.cause
- the cause.public ContractException(String message, Collection<org.hyperledger.fabric.sdk.ProposalResponse> proposalResponses)
message
- the detail message.proposalResponses
- the proposal responses.public Collection<org.hyperledger.fabric.sdk.ProposalResponse> getProposalResponses()
public void setProposalResponses(Collection<org.hyperledger.fabric.sdk.ProposalResponse> proposalResponses)
proposalResponses
- the proposal responses.Copyright © 2023. All rights reserved.