# Suppress warnings in console?

**URL:** <https://discourse.processing.org/t/suppress-warnings-in-console/46479>\
**Category:** Processing\
**Created:** [May 28, 2025, 5:02pm UTC](https://discourse.processing.org/t/suppress-warnings-in-console/46479 "2025-05-28T17:02:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![esc746](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/esc746/32/4258_2.png) [@esc746](https://discourse.processing.org/u/esc746)\
**Post date:** [May 28, 2025, 5:02pm UTC](https://discourse.processing.org/t/suppress-warnings-in-console/46479/1 "2025-05-28T17:02:33Z")

</div>

The subject line says it all. Is there any way to suppress warnings in the console? Perhaps by intercepting the exception? I know that I can in Python.

In my example I am getting spurious errors while playing video. Functionality is not impacted. For completeness, it’s errors like the following.

`Callback org.freedesktop.gstreamer.elements.AppSink$2@4e1d5565 threw the following exception java.lang.IllegalStateException: Native object has been disposed`

This continues for many lines and interferes with the reporting that I **do** want to read in the console.
