@@ -121,7 +121,7 @@ export class Scope implements ScopeInterface {
121
121
}
122
122
123
123
/**
124
- * Clone this scope instance.
124
+ * @inheritDoc
125
125
*/
126
126
public clone ( ) : Scope {
127
127
const newScope = new Scope ( ) ;
@@ -145,23 +145,22 @@ export class Scope implements ScopeInterface {
145
145
return newScope ;
146
146
}
147
147
148
- /** Update the client on the scope. */
148
+ /**
149
+ * @inheritDoc
150
+ */
149
151
public setClient ( client : Client | undefined ) : void {
150
152
this . _client = client ;
151
153
}
152
154
153
155
/**
154
- * Get the client assigned to this scope.
155
- *
156
- * It is generally recommended to use the global function `Sentry.getClient()` instead, unless you know what you are doing.
156
+ * @inheritDoc
157
157
*/
158
158
public getClient < C extends Client > ( ) : C | undefined {
159
159
return this . _client as C | undefined ;
160
160
}
161
161
162
162
/**
163
- * Add internal on change listener. Used for sub SDKs that need to store the scope.
164
- * @hidden
163
+ * @inheritDoc
165
164
*/
166
165
public addScopeListener ( callback : ( scope : Scope ) => void ) : void {
167
166
this . _scopeListeners . push ( callback ) ;
@@ -542,7 +541,7 @@ export class Scope implements ScopeInterface {
542
541
}
543
542
544
543
/**
545
- * Add data which will be accessible during event processing but won't get sent to Sentry
544
+ * @inheritDoc
546
545
*/
547
546
public setSDKProcessingMetadata ( newData : { [ key : string ] : unknown } ) : this {
548
547
this . _sdkProcessingMetadata = { ...this . _sdkProcessingMetadata , ...newData } ;
@@ -566,11 +565,7 @@ export class Scope implements ScopeInterface {
566
565
}
567
566
568
567
/**
569
- * Capture an exception for this scope.
570
- *
571
- * @param exception The exception to capture.
572
- * @param hint Optinal additional data to attach to the Sentry event.
573
- * @returns the id of the captured Sentry event.
568
+ * @inheritDoc
574
569
*/
575
570
public captureException ( exception : unknown , hint ?: EventHint ) : string {
576
571
const eventId = hint && hint . event_id ? hint . event_id : uuid4 ( ) ;
@@ -597,12 +592,7 @@ export class Scope implements ScopeInterface {
597
592
}
598
593
599
594
/**
600
- * Capture a message for this scope.
601
- *
602
- * @param message The message to capture.
603
- * @param level An optional severity level to report the message with.
604
- * @param hint Optional additional data to attach to the Sentry event.
605
- * @returns the id of the captured message.
595
+ * @inheritDoc
606
596
*/
607
597
public captureMessage ( message : string , level ?: SeverityLevel , hint ?: EventHint ) : string {
608
598
const eventId = hint && hint . event_id ? hint . event_id : uuid4 ( ) ;
@@ -630,11 +620,7 @@ export class Scope implements ScopeInterface {
630
620
}
631
621
632
622
/**
633
- * Captures a manually created event for this scope and sends it to Sentry.
634
- *
635
- * @param exception The event to capture.
636
- * @param hint Optional additional data to attach to the Sentry event.
637
- * @returns the id of the captured event.
623
+ * @inheritDoc
638
624
*/
639
625
public captureEvent ( event : Event , hint ?: EventHint ) : string {
640
626
const eventId = hint && hint . event_id ? hint . event_id : uuid4 ( ) ;
0 commit comments