# Catch unhandled exceptions in add-in instead of crashing RobotStudio

**URL:** <https://tech-community.robotics.abb.com/t/catch-unhandled-exceptions-in-add-in-instead-of-crashing-robotstudio/7624>\
**Category:** Developer Tools\
**Tags:** fatal-error-robotstudio, robotstudio, robotstudio-sdk, crash, addin\
**Created:** [March 14, 2017, 2:55pm UTC](https://tech-community.robotics.abb.com/t/catch-unhandled-exceptions-in-add-in-instead-of-crashing-robotstudio/7624 "2017-03-14T14:55:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sehe](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sehe](https://tech-community.robotics.abb.com/u/sehe)\
**Post date:** [March 14, 2017, 2:55pm UTC](https://tech-community.robotics.abb.com/t/catch-unhandled-exceptions-in-add-in-instead-of-crashing-robotstudio/7624/1 "2017-03-14T14:55:59Z")

</div>

Hello,

I’m developing a RobotStudio add-in. Every once in a while my Add-In will throw an exception, and I get a “RobotStudio - Fatal Error” message box. Once you click yes or no, RobotStudio crashes.

Is there an easy way to catch any unhandled exceptions in my Add-In without placing try/catches around every method? I’ve used the dispatcher unhandled exception handler in other WPF applications, but I can’t find anything like that for my add-in.

Thank you for the help!
