Class AppSyncErrorAbstract

Base class for every error this library throws. Catch this if you want a single catch block; switch on instanceof (or error.code) when you need to distinguish cases.

Every concrete subclass sets a stable code you can branch on without relying on instanceof checks across module boundaries.

Hierarchy (View Summary)

Constructors

Properties

Constructors

  • Parameters

    • message: string
    • Optionaloptions: { cause?: unknown }

    Returns AppSyncError

Properties

code: string

A stable, machine-readable error code.