Skip to main content
Module

x/sentry/index.mjs>captureException

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

Captures an exception event and sends it to Sentry. This accepts an event hint as optional second parameter. Alternatively, you can also pass a CaptureContext directly as second parameter.

Parameters

exception: any
optional
hint: ExclusiveEventHintOrCaptureContext

Returns

ReturnType<Hub["captureException"]>