Skip to content
Developer Preview

MuseGapFillError

A gap the client could not fill.

REPORTED to Session.onGapError, never thrown: the fill is driven from a notification, so a throw would escape into the consumer’s pump with nothing to catch it. Typed rather than a bare Error because the hole it names is a STATE a consumer must branch on — the fold stays not-current until a later recovery, and (after, next) names exactly what is missing. Reporting it is what makes the hole loud instead of silent, which is the half of the fill itself cannot deliver.

Property Type Stability Presence Description
after string required The gap’s own bounds, verbatim and opaque.
next string required
reason GapFillFailureReason required
Method Signature Stability Description
constructor new MuseGapFillError(reason: GapFillFailureReason, after: string, next: string, cause?: unknown)
Source

clients/sdk-ts/src/errors.ts:58

{
"kind": "Class",
"canonicalPath": "MuseGapFillError"
}