Skip to content

ErrorEvent

Defined in: src/types/IEvent.ts:68

Emitted when a check or operation throws.

timestamp: number

Defined in: src/types/IEvent.ts:36

Epoch milliseconds when the event was emitted.

BaseEvent.timestamp


name: "error"

Defined in: src/types/IEvent.ts:69

The event name (access | change | error).

BaseEvent.name


error: AccessControlError

Defined in: src/types/IEvent.ts:70


operation: string

Defined in: src/types/IEvent.ts:72

The operation that threw (e.g. 'check', 'grant').


optional roles?: string[]

Defined in: src/types/IEvent.ts:73


optional resource?: string

Defined in: src/types/IEvent.ts:74


optional action?: string

Defined in: src/types/IEvent.ts:75