4 ms·
For fillInStackTrace, another trick is to define your own Exception subclass and override the method to be empty. I learned this trick 15+ years ago. It doesn'
by titzer 7mo ago
For fillInStackTrace, another trick is to define your own Exception subclass and override the method to be empty. I learned this trick 15+ years ago.
It doesn't excuse the "use exceptions for control flow" anti-pattern, but it is a quick patch.
- ivan_gammel 7mo agoGod, please make me unsee it. That‘s a cool trick that turns into an anti-pattern itself if abused.