Relative Content

Tag Archive for c#exceptiontry-catch

Try-Catch block being called from within another method’s Try-Catch isn’t throwing error as expected

I’m running Selenium tests and I have a function (‘functionA’) where all the logic is inside a try-catch (I didn’t write this code). It calls another function (functionB) which has a line I’d like to wrap in a try-catch in order to to throw the exception from functionB for easier debugging (right now functionA catches the exception, but it doesn’t make for easy debugging since the call stack just says ‘External Code’).