mirror of
https://github.com/corda/corda.git
synced 2025-01-18 02:39:51 +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.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
|
||||
|
Loading…
Reference in New Issue
Block a user