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:
Ryan Fowler 2020-09-16 16:41:11 +01:00 committed by GitHub
parent afd3876faf
commit 83ec8289b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,6 @@ import net.corda.core.utilities.NetworkHostAndPort
import net.corda.core.utilities.contextLogger
import net.corda.core.utilities.debug
import net.corda.core.utilities.seconds
import net.corda.nodeapi.exceptions.MissingAttachmentException
import net.corda.nodeapi.exceptions.RejectedCommandException
import org.apache.activemq.artemis.api.core.ActiveMQConnectionTimedOutException
import org.apache.activemq.artemis.api.core.ActiveMQSecurityException
@ -354,10 +353,6 @@ class ReconnectingCordaRPCOps private constructor(
is PermissionException -> {
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 -> {
log.warn("Failed to perform operation ${method.name}.", e)
throw e.targetException