Skip to content

Commit 4277118

Browse files
committed
Fix invalid Exception syntax
1 parent 2ace216 commit 4277118

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/platforms/javascript/common/configuration/integrations/featureflags.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ if (flagsIntegration) {
6363
} else {
6464
// check your configure step
6565
}
66-
Sentry.captureException(Exception('broke'));
66+
Sentry.captureException(new Error('broke'));
6767
```
6868
6969
Visit the Sentry website and confirm that your error event has recorded the feature flag "hello" and its value "false".

docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ import * as LaunchDarkly from 'launchdarkly-js-client-sdk';
6969
// You may have to wait for your client to initialize before doing this.
7070
ldClient?.variation("hello", false);
7171

72-
Sentry.captureException(Exception("Something went wrong!"))
72+
Sentry.captureException(new Error("Something went wrong!"))
7373
```
7474
7575
Visit the Sentry website and confirm that your error event has recorded the feature flag "hello" and its value "false".

docs/platforms/javascript/common/configuration/integrations/openfeature.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ import { OpenFeature } from '@openfeature/web-sdk';
7373
const client = OpenFeature.getClient();
7474
const result = client.getBooleanValue('hello', false);
7575

76-
Sentry.captureException(Exception("Something went wrong!"))
76+
Sentry.captureException(new Error("Something went wrong!"))
7777
```
7878

7979
Visit the Sentry website and confirm that your error event has recorded the feature flag "hello" and its value "false".

0 commit comments

Comments
 (0)