Interface: DatabaseErrorEventData
Defined in: shared/types/events.ts:517
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",
};
Hierarchyโ
Extendsโ
Indexableโ
[
key:string]:unknown
[
key:number]:unknown
[
key:symbol]:unknown
Propertiesโ
timestampโ
readonlytimestamp:number
Defined in: shared/types/events.ts:110
The time (in milliseconds since epoch) when the event occurred.
Inherited fromโ
_meta?โ
readonlyoptional_meta?:EventMetadata
Defined in: shared/types/events.ts:112
Runtime metadata describing the emission context.
Inherited fromโ
_originalMeta?โ
readonlyoptional_originalMeta?:EventMetadata
Defined in: shared/types/events.ts:114
Preserves previously attached metadata when re-emitting events.
Inherited fromโ
BaseStateSyncEventData._originalMeta
errorโ
error:
Error
Defined in: shared/types/events.ts:519
The actual error that occurred
operationโ
operation:
DatabaseOperation
Defined in: shared/types/events.ts:521
The database operation that failed
parameters?โ
optionalparameters?:unknown[]
Defined in: shared/types/events.ts:523
SQL parameters that were used (optional for debugging)
table?โ
optionaltable?:string
Defined in: shared/types/events.ts:525
The database table involved (optional)