Skip to content

ErrorEvent

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

Emitted when a check or operation throws.

timestamp: number

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

Epoch milliseconds when the event was emitted.

BaseEvent.timestamp


name: "error"

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

The event name (access | change | error).

BaseEvent.name


error: AccessControlError

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


operation: string

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

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


optional roles?: string[]

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


optional resource?: string

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


optional action?: string

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