mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
NotaryException now provides the specific error information
This commit is contained in:
parent
3ef8763d71
commit
f363439a6c
@ -99,7 +99,9 @@ class NotaryProtocol(private val wtx: WireTransaction,
|
||||
}
|
||||
}
|
||||
|
||||
class NotaryException(val error: NotaryError) : Exception()
|
||||
class NotaryException(val error: NotaryError) : Exception() {
|
||||
override fun toString() = "${super.toString()}: Error response from Notary - ${error.toString()}"
|
||||
}
|
||||
|
||||
sealed class NotaryError {
|
||||
class Conflict(val tx: WireTransaction, val conflict: SignedData<UniquenessProvider.Conflict>) : NotaryError() {
|
||||
|
Loading…
Reference in New Issue
Block a user