On This Page

EventOverflowError

Class in Errors · JavaScript & TypeScript

An event subscription stopped because unread events exceeded its count or byte limit

The subscription does not restart or replay missed events

class EventOverflowError extends FluxerlyErrorclass EventOverflowError
  extends FluxerlyError

Constructor#

new EventOverflowError(
    limit: "bytes" | "messages",
    capacity: number
): EventOverflowErrornew EventOverflowError(
  limit: "bytes" | "messages",
  capacity: number
): EventOverflowError

Parameters

limit

Budget exceeded by the incoming event

"bytes" | "messages"
capacity

Configured event-payload count when limit is messages, or source-JSON bytes when limit is bytes

A bulk deletion or reaction batch counts as one payload

number

Properties#

_tag#

Discriminator for identifying queue overflow in an expected failure result

readonly _tag: "EventOverflowError"

capacity#

Configured event-payload count when limit is messages, or source-JSON bytes when limit is bytes

A bulk deletion or reaction batch counts as one payload

readonly capacity: number

limit#

Budget exceeded by the incoming event

readonly limit: "bytes" | "messages"readonly limit:
  | "bytes" | "messages"

Inherited#

Inherited from FluxerlyError: code, details, hint, toJSON