Skip to main content

Interface: DatabaseErrorEventData

Defined in: shared/types/events.ts:117

Payload for database error events.

Remarksโ€‹

Used to communicate database operation errors with detailed context. Provides structured error information for debugging and monitoring.

Exampleโ€‹

const event: DatabaseErrorEventData = {
error: new https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error("Connection timeout"),
operation: "query",
table: "monitors",
};

Extendsโ€‹

Propertiesโ€‹

timestampโ€‹

timestamp: number

Defined in: shared/types/events.ts:25

The time (in ms since epoch) when the event occurred.

Inherited fromโ€‹

BaseEventData.timestamp


errorโ€‹

error: Error

Defined in: shared/types/events.ts:119

The actual error that occurred


operationโ€‹

operation: DatabaseOperation

Defined in: shared/types/events.ts:121

The database operation that failed


parameters?โ€‹

optional parameters: unknown[]

Defined in: shared/types/events.ts:123

SQL parameters that were used (optional for debugging)


table?โ€‹

optional table: string

Defined in: shared/types/events.ts:125

The database table involved (optional)