Can I ignore an exception only once?
<p>When an exception occurs the debugger gives me the following message:</p>

<p><a href="https://i.stack.imgur.com/4PY5H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4PY5H.png" alt="enter image description here"></a>  </p>

<p>I can choose to ignore the exception by checking <code>ignore this exception type</code>.<br>
However doing this ignores this exception in all future projects, which is worse than useless because I don't want to ignore exceptions in every project; I just want to ignore them in this run.  </p>

<p>Using the ToolsAPI, is there a way to:</p>

<p>A - ignore exceptions for this run only, or<br>
B - ignore exceptions just for this project, or<br>
C - restore the ignore exception settings when I restart Delphi?  </p>

<p>If I can do A, B or C my problem is solved.  </p>

<p>I know the <code>ignore exception</code> data is stored in:   </p>

<blockquote>
  <p><code>HKEY_CURRENT_USER\Software\Embarcadero\BDS\17.0\Debugging\Embarcadero Debuggers\Language Exception Classes</code></p>
</blockquote>

<p>My preferred option would be to use the ToolsAPI to fixup the messagebox and add a <code>ignore this exception for this session only</code> checkbox.<br>
But if that's not available I'm fine with messing about with the registry.<br>
If I do fall back to the registry, I would like to force Delphi to reload the settings so I don't have to restart the IDE.  </p>

<p>For the record I'm using Seattle, but I'd prefer this to work from 2007 onwards.  </p>

<p>I checked the ToolsAPI, but <code>IOTAFileFilterWithCheckEncode</code> looks unrelated and I think <code>IOTABreakpoint80</code> only applies to breakpoints set by a user.  </p>

<p><em><sup>I don't have source yet, because I'm not sure what I want is possible using the ToolsAPI, and if it isn't I'll just fallback to using an external app that records the above registry key, starts Delphi and restores the registry key. I'm hoping there's a cleaner way though.</sup></em></p>