public static class NotaryError.Conflict extends NotaryError
Occurs when one or more input states have already been consumed by another transaction.
NotaryError.Companion, NotaryError.Conflict, NotaryError.General, NotaryError.RequestSignatureInvalid, NotaryError.TimeWindowInvalid, NotaryError.TransactionInvalid, NotaryError.WrongNotary
Companion, NUM_STATES
Constructor and Description |
---|
Conflict(SecureHash txId,
java.util.Map<net.corda.core.contracts.StateRef,net.corda.core.flows.StateConsumptionDetails> consumedStates)
Occurs when one or more input states have already been consumed by another transaction.
|
Modifier and Type | Method and Description |
---|---|
SecureHash |
component1()
Id of the transaction that was attempted to be notarised.
|
java.util.Map<net.corda.core.contracts.StateRef,net.corda.core.flows.StateConsumptionDetails> |
component2()
Specifies which states have already been consumed in another transaction.
|
NotaryError.Conflict |
copy(SecureHash txId,
java.util.Map<net.corda.core.contracts.StateRef,net.corda.core.flows.StateConsumptionDetails> consumedStates)
Occurs when one or more input states have already been consumed by another transaction.
|
boolean |
equals(java.lang.Object p) |
java.util.Map<net.corda.core.contracts.StateRef,net.corda.core.flows.StateConsumptionDetails> |
getConsumedStates()
Specifies which states have already been consumed in another transaction.
|
SecureHash |
getTxId()
Id of the transaction that was attempted to be notarised.
|
int |
hashCode() |
java.lang.String |
toString() |
public Conflict(SecureHash txId, java.util.Map<net.corda.core.contracts.StateRef,net.corda.core.flows.StateConsumptionDetails> consumedStates)
Occurs when one or more input states have already been consumed by another transaction.
txId
- Id of the transaction that was attempted to be notarised.consumedStates
- Specifies which states have already been consumed in another transaction.public java.lang.String toString()
public SecureHash getTxId()
Id of the transaction that was attempted to be notarised.
public java.util.Map<net.corda.core.contracts.StateRef,net.corda.core.flows.StateConsumptionDetails> getConsumedStates()
Specifies which states have already been consumed in another transaction.
public SecureHash component1()
Id of the transaction that was attempted to be notarised.
public java.util.Map<net.corda.core.contracts.StateRef,net.corda.core.flows.StateConsumptionDetails> component2()
Specifies which states have already been consumed in another transaction.
public NotaryError.Conflict copy(SecureHash txId, java.util.Map<net.corda.core.contracts.StateRef,net.corda.core.flows.StateConsumptionDetails> consumedStates)
Occurs when one or more input states have already been consumed by another transaction.
public int hashCode()
public boolean equals(java.lang.Object p)