mirror of
https://github.com/corda/corda.git
synced 2025-06-01 15:10:54 +00:00
ENT-5492 Let the MissingAttachmentException through the RPC (#6719)
* CORDA-4036: Put the identity failures on the same log so they aren't missed. * ENT-5492: Let the MissingAttachmentException propagate out
This commit is contained in:
parent
afd3876faf
commit
83ec8289b6
@ -38,7 +38,6 @@ import net.corda.core.utilities.NetworkHostAndPort
|
|||||||
import net.corda.core.utilities.contextLogger
|
import net.corda.core.utilities.contextLogger
|
||||||
import net.corda.core.utilities.debug
|
import net.corda.core.utilities.debug
|
||||||
import net.corda.core.utilities.seconds
|
import net.corda.core.utilities.seconds
|
||||||
import net.corda.nodeapi.exceptions.MissingAttachmentException
|
|
||||||
import net.corda.nodeapi.exceptions.RejectedCommandException
|
import net.corda.nodeapi.exceptions.RejectedCommandException
|
||||||
import org.apache.activemq.artemis.api.core.ActiveMQConnectionTimedOutException
|
import org.apache.activemq.artemis.api.core.ActiveMQConnectionTimedOutException
|
||||||
import org.apache.activemq.artemis.api.core.ActiveMQSecurityException
|
import org.apache.activemq.artemis.api.core.ActiveMQSecurityException
|
||||||
@ -354,10 +353,6 @@ class ReconnectingCordaRPCOps private constructor(
|
|||||||
is PermissionException -> {
|
is PermissionException -> {
|
||||||
throw RPCException("User does not have permission to perform operation ${method.name}.", e)
|
throw RPCException("User does not have permission to perform operation ${method.name}.", e)
|
||||||
}
|
}
|
||||||
is MissingAttachmentException -> {
|
|
||||||
log.warn("Failed to perform operation ${method.name}.", e)
|
|
||||||
break@loop
|
|
||||||
}
|
|
||||||
else -> {
|
else -> {
|
||||||
log.warn("Failed to perform operation ${method.name}.", e)
|
log.warn("Failed to perform operation ${method.name}.", e)
|
||||||
throw e.targetException
|
throw e.targetException
|
||||||
|
Loading…
x
Reference in New Issue
Block a user