19
Views
2
Comments
Solved
what happens if an exception occurs in exception handler?
Question

In my system, I try to handle timeout exception and then re-call an service API with limit re-call is 3 times.

In firt time of exception occur, the exception handler work at expectation. But I'm concern what happen if re-call still get timeout?

Does that will go through exception handler again or will throw the exception to outside?


Solution

Afaik, an exception thrown in an exception handler will throw that exception outside the action, so it may be caught by an exception handler in the calling action.

Many thanks for the prompt reply. I got it.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.