type alias ErrorContext

Error facts routed to the applicable sinks.

Properties

Error code for classification

optional
listingId: number | undefined

Optional: listing ID (not slug)

optional
attendeeId: number | undefined

Optional: attendee ID

optional
detail: string | undefined

Optional context that is safe for every error sink.

optional
operatorDetail: string | undefined

Activity-log context. It can contain personal data and must not reach other sinks.

optional
error: unknown

Optional original thrown error. Forwarded to Sentry (never to the console line, ntfy, or the activity log) so server-side reports carry a real stack trace. Attach it wherever a catch would otherwise stringify the error into detail.

optional
fingerprint: string[] | undefined

Optional grouping override for the Sentry report. A report that carries an exception groups by its stack. A transport message defeats that grouping, because it names the connection's IP, port, and database host. The override pins the group to stable facts instead. Built by databaseErrorFingerprint in src/shared/db/errors.ts.

Usage

import { type ErrorContext } from "docs/utilities.ts";