Skip to main content

Interface: DatabaseErrorEventData

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

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 Error("Connection timeout"),
operation: "query",
table: "monitors",
};

Hierarchyโ€‹

View Summary

Extendsโ€‹

Indexableโ€‹

[key: string]: unknown
[key: number]: unknown
[key: symbol]: unknown

Propertiesโ€‹

timestampโ€‹

readonly timestamp: number;

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

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

Inherited fromโ€‹

BaseEventData.timestamp


_meta?โ€‹

readonly optional _meta?: EventMetadata;

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

Runtime metadata describing the emission context.

Inherited fromโ€‹

BaseStateSyncEventData._meta


_originalMeta?โ€‹

readonly optional _originalMeta?: EventMetadata;

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

Preserves previously attached metadata when re-emitting events.

Inherited fromโ€‹

BaseStateSyncEventData._originalMeta


errorโ€‹

error: Error;

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

The actual error that occurred


operationโ€‹

operation: DatabaseOperation;

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

The database operation that failed


parameters?โ€‹

optional parameters?: unknown[];

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

SQL parameters that were used (optional for debugging)


table?โ€‹

optional table?: string;

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

The database table involved (optional)