mirror of
https://github.com/corda/corda.git
synced 2024-12-20 05:28:21 +00:00
universal: wrong exception type
This commit is contained in:
parent
607fd67519
commit
02e0b2218c
@ -2,7 +2,6 @@ package net.corda.contracts.universal
|
|||||||
|
|
||||||
import com.google.common.collect.ImmutableSet
|
import com.google.common.collect.ImmutableSet
|
||||||
import com.google.common.collect.Sets
|
import com.google.common.collect.Sets
|
||||||
import com.sun.tools.corba.se.idl.InvalidArgument
|
|
||||||
import net.corda.core.contracts.Frequency
|
import net.corda.core.contracts.Frequency
|
||||||
import net.corda.core.crypto.CompositeKey
|
import net.corda.core.crypto.CompositeKey
|
||||||
import net.corda.core.crypto.Party
|
import net.corda.core.crypto.Party
|
||||||
@ -73,7 +72,7 @@ fun replaceParty(perceivable: Perceivable<Boolean>, from: Party, to: Party): Per
|
|||||||
is PerceivableAnd -> replaceParty(perceivable.left, from, to) and replaceParty(perceivable.right, from, to)
|
is PerceivableAnd -> replaceParty(perceivable.left, from, to) and replaceParty(perceivable.right, from, to)
|
||||||
is PerceivableOr -> replaceParty(perceivable.left, from, to) or replaceParty(perceivable.right, from, to)
|
is PerceivableOr -> replaceParty(perceivable.left, from, to) or replaceParty(perceivable.right, from, to)
|
||||||
is TimePerceivable -> perceivable
|
is TimePerceivable -> perceivable
|
||||||
else -> throw InvalidArgument("replaceParty " + perceivable)
|
else -> throw IllegalArgumentException("replaceParty " + perceivable)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun replaceParty(action: Action, from: Party, to: Party): Action =
|
fun replaceParty(action: Action, from: Party, to: Party): Action =
|
||||||
|
Loading…
Reference in New Issue
Block a user