Type Alias ReporterFailure
ReporterFailure:
| { kind: "first event"; message?: string }
| { event: EventKind; kind: "on event"; message?: string }
| { key: string; kind: "on global metadata"; message?: string }
| { kind: "first event"; message?: string }
| { event: EventKind; kind: "on event"; message?: string }
| { key: string; kind: "on global metadata"; message?: string }
Type Declaration
- { kind: "first event"; message?: string }
-
Readonlykind: "first event"It fails on the first event it receives.
-
OptionalReadonlymessage?: stringThe message of the error it throws.
-
- { event: EventKind; kind: "on event"; message?: string }
-
Readonlyevent: EventKindThe kind of event it fails on.
-
Readonlykind: "on event"It fails on every event of a kind.
-
OptionalReadonlymessage?: stringThe message of the error it throws.
-
- { key: string; kind: "on global metadata"; message?: string }
-
Readonlykey: stringThe key of the entries it fails on.
-
Readonlykind: "on global metadata"It fails on every entry of global metadata under a key.
-
OptionalReadonlymessage?: stringThe message of the error it throws.
-
Where a FailingReporter fails: on the first event it receives, on every event of a kind, or on every entry of global metadata under a key, each with the message of the error it throws, or one of its own.