Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sentry/index.mjs>Scope#captureException

The Official Sentry Deno SDK
Go to Latest
method Scope.prototype.captureException
import { Scope } from "https://deno.land/x/sentry@7.120.0/index.mjs";

Capture an exception for this scope.

Parameters

exception: unknown

The exception to capture.

optional
hint: EventHint

Optinal additional data to attach to the Sentry event.

Returns

string

the id of the captured Sentry event.