Extend exceptions from AiExceptionInterface
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3543876. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !177 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>This is a follow up to this issue <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3542498" title="Status: Closed (fixed)">#3542498: Provide an exception interface all exceptions implement</a></span>. AI Agents will be headed into AI core in 2.0.0 of the module, but we should already prepare so the exceptions is extending the interface in the same manner.</p> <p>Note that this will only catch any exception that uses AgentExceptions in the tools. If other type of exceptions are thrown, they will not be inheriting this.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Extend all exceptions in the module with AgentExceptions.</p> > Related issue: [Issue #3542498](https://www.drupal.org/node/3542498)
issue