public class NotaryException
Exception thrown by the notary service if any issues are encountered while trying to commit a transaction. The underlying error specifies the cause of failure.
Constructor and Description |
---|
NotaryException(NotaryError error,
SecureHash txId)
Exception thrown by the notary service if any issues are encountered while trying to commit a transaction. The
underlying error specifies the cause of failure.
|
Modifier and Type | Method and Description |
---|---|
NotaryError |
getError()
Cause of notarisation failure.
|
SecureHash |
getTxId()
Id of the transaction to be notarised.
|
public NotaryException(NotaryError error, SecureHash txId)
Exception thrown by the notary service if any issues are encountered while trying to commit a transaction. The underlying error specifies the cause of failure.
error
- Cause of notarisation failure.txId
- Id of the transaction to be notarised. Can be null if an error occurred before the id could be resolved.public NotaryError getError()
Cause of notarisation failure.
public SecureHash getTxId()
Id of the transaction to be notarised.
Can be null if an error occurred before the id could be resolved.