# Gracefully handled exceptions

**URL:** <https://community.dynatrace.com/t/gracefully-handled-exceptions/44273>\
**Category:** Alerting\
**Tags:** java\
**Created:** [February 23, 2024, 10:09am UTC](https://community.dynatrace.com/t/gracefully-handled-exceptions/44273 "2024-02-23T10:09:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_kat](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/g_kat/32/34573_2.png) [@g\_kat](https://community.dynatrace.com/u/g_kat)\
**Post date:** [February 23, 2024, 10:09am UTC](https://community.dynatrace.com/t/gracefully-handled-exceptions/44273/1 "2024-02-23T10:09:40Z")

</div>

Hi,

Inside an Apache Kafka Service, we have a Java method that surrounds the critical code in a try…catch. In case of a caught exception, an error message is logged and the code continues. We are interested in getting the exception information in Dynatrace, but we don’t seem to get it out-of-the-box.

I checked about Custom Handled Exceptions, but I’m under the impression that it works only for already registered exceptions in Dynatrace.

Thanks,

George

---

<div class="post-metadata">

**Author:** ![MichalOlszewski](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@MichalOlszewski](https://community.dynatrace.com/u/MichalOlszewski)\
**Post date:** [April 10, 2024, 11:19am UTC](https://community.dynatrace.com/t/gracefully-handled-exceptions/44273/2 "2024-04-10T11:19:10Z")

</div>

Hi&nbsp;[@g\_kat](https://community.dynatrace.com/user/34133)

You are correct. It works for captured Exceptions.  
Dynatrace have list of “Noisy Exceptions” and by default suppresses them (by not capturing).  
If Your try cache is using generic exception classes it might fall under one of the rules.  
You can find them under: Settings =\> Server-side service monitoring =\> Deep Monitoring =\>&nbsp;Exclude noisy and unnecessary exceptions

 ![MichalOlszewski_0-1712747894692.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/9/59ebeea10165307a7991c15944fd9899b682524b.png)

I think it should help

Bests  
Michal
