---
title: "Discussion on \"Code Smell 26 - Exceptions Polluting\" | Hashnode"
description: "Discussion on \"Code Smell 26 - Exceptions Polluting\". Exception pollution is a very common code smell. We create exceptions nobody ever catches."
url: "https://hashnode.com/posts/code-smell-26-exceptions-polluting/5fb1ec960f6d4f4d2f66a8c7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Code Smell 26 - Exceptions Polluting](https://maximilianocontieri.com/code-smell-26-exceptions-polluting?utm_source=hashnode&utm_medium=feed)

Exception pollution is a very common code smell. We create exceptions nobody ever catches.

Nov 16, 2020 · 2 min read · maximilianocontieri.com  
Updated Feb 20, 2024  
Read the article

-   [#code-smell-1](https://hashnode.com/tag/code-smell-1)
-   [#programming](https://hashnode.com/tag/programming)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#clean-code](https://hashnode.com/tag/clean-code)

## Written by

[Maxi Contieri](https://hashnode.com/@mcsee)

@mcsee · Buenos Aires

  
[View profile](https://hashnode.com/@mcsee)

Software Engineer

I’m a senior software engineer loving clean code, and declarative designs. S.O.L.I.D. and agile methodologies fan.

## Responses 1

Markdown supported · ⌘↵ to post

[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.
