Skip to content

ErrorEvent

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

Emitted when a check throws (also under tryCan(), which then denies).

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: always 'check', the only one that emits error.


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