✅ Exception is caught, but not?
I have this piece of code
on
await _dbContext.SaveChangesAsync();
I am getting exception. Breakpoint hits catch (Exception e)
it goes into return new Result<OptionNone>(e);
and then it just skips execution... it shows on IDE that exception is still present
I don't understand nothing from it 😦21 Replies
And what happens when you keep continuing?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oh I am using Rider
one moment
exception is goes through application
but anyway, this is "break when exception is called"
what I am saying it's Exception after catch it's still present. Like there was no catch :/
that's why I am confused
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Or better yet, a simple unit test that shows the exception escapes to the async caller
@TeBeConsulting @phaseshift
sorry for late response. I didn't get notifications 😦
there you go recording 🙂
that will be difficult as this is connecting with DB
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Why did you stop the recording there?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
there is lightning sign, which indicates that exception is "on going"
one moment I will make new one
It's still in scope
When you exit the method, then it will be gone
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
it's not
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
from LanguageExt object that it's "none"
one moment 😄
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
hmmm ok you are guys right
execution it's correct
but that lightning was confusing to me
because it does not disappear
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
😄
with one try-catch it's different behaviour then the other one 😐
at least I am not crazy 😌
thanks for reassurance 🙂 @TeBeConsulting @phaseshift
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View