mirror of
https://github.com/corda/corda.git
synced 2025-06-06 01:11:45 +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 {
|
sealed class NotaryError {
|
||||||
class Conflict(val tx: WireTransaction, val conflict: SignedData<UniquenessProvider.Conflict>) : NotaryError() {
|
class Conflict(val tx: WireTransaction, val conflict: SignedData<UniquenessProvider.Conflict>) : NotaryError() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user