type alias ErrorContext

Error log context (privacy-safe metadata only)

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: additional safe context

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.

Usage

import { type ErrorContext } from "doc.ts";