public class ContractException extends GatewayException
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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.