# Exception handling

**URL:** <https://forum.juce.com/t/exception-handling/29389>\
**Category:** General JUCE discussion\
**Created:** [September 12, 2018, 6:38am UTC](https://forum.juce.com/t/exception-handling/29389 "2018-09-12T06:38:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![basteln](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@basteln](https://forum.juce.com/u/basteln)\
**Post date:** [September 12, 2018, 6:38am UTC](https://forum.juce.com/t/exception-handling/29389/1 "2018-09-12T06:38:31Z")

</div>

The `JUCE_CATCH_EXCEPTION` macro silently “swallows” an exception if `JUCEApplicationBase::getInstance()` is null. Wouldn’t it be better to re-throw in this case? For example, I imagine it could be null when running as a plug-in.

[This](https://github.com/WeAreROLI/JUCE/blob/master/modules/juce_events/messages/juce_ApplicationBase.cpp#L76) is the code in question.
