It kinda seems like this exception that is happening is just being silently snuffed out
r
Ruckus
05/28/2019, 6:24 PM
It works the same as anywhere else. Can you provide a code sample that demonstrates your issue?
d
dumptruckman
05/28/2019, 6:26 PM
Well, I’m not entirely sure what my issue is. I do know that an exception is occurring and we have an aspect that logs it and rethrows it. I’m expecting that the exception should be caught somewhere further up the stack but it does not.
dumptruckman
05/28/2019, 6:27 PM
And notably, the exception is occurring within a forEach block. However, it doesn’t seem to be thrown out of that block.
dumptruckman
05/28/2019, 6:31 PM
Ok no… looks like it probably is and it’s just not being caught in an expected way
r
Ruckus
05/28/2019, 6:32 PM
Without knowing any more, we can only guess. I'd venture there is something between where it is rethrown and where you expect to catch it that is silently handling it, but it could be any number of things. Maybe it's not actually rethrown, maybe the type of exception doesn't match the catch. Maybe ...
d
dumptruckman
05/28/2019, 6:33 PM
It’s a runtime exception and there’s definitely nothing catching this one in particular. I was just under the impression we had something at a top level that caught and logged everything…. But I guess that’s wrong