I've been searching on google for best practices regarding exception handling, however I did not have much success besides using try-catch
.
My framework is set with a EventFiringWebDriver
which, according to Selenium documentation has a ExceptionThrown
event.
I was thinking in implementing it so we can quickly debug the method that threw the exception, as some colleagues are not programmers and don't know a lot about coding.
The other idea I had is adding try-catch
to each method but this seems like a really tedious and worthless endeavour as I would've to keep adding try-catchs to each new method.
So my question is, do you have any best practices regarding exception handling?