# Capturing the uncaught exceptions that are "normal"

**URL:** <https://devforum.zoom.us/t/capturing-the-uncaught-exceptions-that-are-normal/102371>\
**Category:** Meeting SDK\
**Created:** [January 23, 2024, 5:00pm UTC](https://devforum.zoom.us/t/capturing-the-uncaught-exceptions-that-are-normal/102371 "2024-01-23T17:00:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kikketer](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kikketer/32/55850_2.png) [@kikketer](https://devforum.zoom.us/u/kikketer)\
**Post date:** [January 23, 2024, 5:00pm UTC](https://devforum.zoom.us/t/capturing-the-uncaught-exceptions-that-are-normal/102371/1 "2024-01-23T17:00:17Z")

</div>

**Meeting SDK Type and Version**  
“@zoom/meetingsdk”: “^3.1.2”,

**Description**  
In both the “standard web” and react versions of the Meeting SDK it seems to throw uncaught exceptions quite often. These uncaught exceptions are things like “on hold” when the user is waiting to join a meeting. There are others as well but right now when these are thrown (in development) react development experience sees a full screen error.

Is there a way to capture these exceptions gracefully?

**Error?**  
“IMPROPER\_MEETING\_STATE”: “closed”  
“IMPROPER\_MEETING\_STATE”: “on hold”  
etc…

**Troubleshooting Routes**  
Wrapped the `init` and `join` calls in a try/catch.  
Wrapped the entire component (react) with an error boundary component.  
Added the `error` prop to the `join` call.

None of these paths cleared up the unhandled exceptions originating from Meeting SDK.

**How To Reproduce**  
Using the stock React starter app but surrounding the calls with try/catch instead of the `.catch` (basically the same).  
Join a meeting and observe how the exceptions are thrown, and in a development environment we see full screen errors and disruptive behavior.

```auto
    try {
      await client.init({
        zoomAppRoot: meetingSDKElement as HTMLDivElement,
        language: 'en-US',
        patchJsMedia: true,
        debug: true,
      });

      await client.join({
        signature: signature,
        sdkKey: sdkKey,
        meetingNumber,
        password,
        userName: userName,
        userEmail: email,
        tk: registrantToken,
        zak: zakToken,
        success: () => {
          console.log('join meeting success');
        },
        error: (error: Error) => {
          console.log('err', error);
        },
      });
    } catch (err) {
      console.error(err);
    }

```
