MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / catch

Method catch

packages/core/src/utils/syncpromise.ts:95–99  ·  view source on GitHub ↗

@inheritdoc

(
    onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null,
  )

Source from the content-addressed store, hash-verified

93
94 /** @inheritdoc */
95 public catch<TResult = never>(
96 onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null,
97 ): PromiseLike<T | TResult> {
98 return this.then(val => val, onrejected);
99 }
100
101 /** @inheritdoc */
102 public finally<TResult>(onfinally?: (() => void) | null): PromiseLike<TResult> {

Callers

nothing calls this directly

Calls 1

thenMethod · 0.95

Tested by

no test coverage detected