---
title: "Comment by Yonatan Karp-Rudin on \"Code Smell 26 - Exceptions Polluting\" | Hashnode"
description: "Minor and unrelated to the focus of this post, but using try-with-resources would have simplified the example a lot and made it much clearer what to look at."
url: "https://hashnode.com/posts/code-smell-26-exceptions-polluting/5fb1ec960f6d4f4d2f66a8c7/comment/639d989aca71d26d25250f76"
---

[Discussion](https://hashnode.com/posts/code-smell-26-exceptions-polluting/5fb1ec960f6d4f4d2f66a8c7)

Comment [Code Smell 26 - Exceptions Polluting](https://hashnode.com/posts/code-smell-26-exceptions-polluting/5fb1ec960f6d4f4d2f66a8c7)

[Yonatan Karp-Rudin](https://hashnode.com/@yonatankarp)

[Dec 17, 2022](https://hashnode.com/posts/code-smell-26-exceptions-polluting/5fb1ec960f6d4f4d2f66a8c7/comment/639d989aca71d26d25250f76)

Minor and unrelated to the focus of this post, but using `try-with-resources` would have simplified the example a lot and made it much clearer what to look at.
