Re: Cost of Exceptions [was: chrisdutz commented on a change in pull request #192: Refactor Field Handler Classes]

2020-10-08 Thread Ben Hutcheson
Hi Niclas, I'm definitely in favour of handling errors better. There have been a few cases I've seen where errors are thrown but the actual error shown doesn't explain what went wrong, or the error reported is different to the initial error. When using the kafka connector (but is probably in the

Cost of Exceptions [was: chrisdutz commented on a change in pull request #192: Refactor Field Handler Classes]

2020-10-06 Thread Niclas Hedhman
On Tue, Oct 6, 2020 at 9:33 AM GitBox wrote: >One thing I've learnt recently, is that exceptions are extremely > expensive, as creating the stack trace is expensive. is this code that is > likely to produce any of "InstantiationException | IllegalAccessException | >