@twip/web
    Preparing search index...

    Class EditorError

    Why an operation failed. Every rejected promise of the API rejects with one.

    Hierarchy

    • Error
      • EditorError
    Index
    • Creates an error. Applications don't usually need to.

      Parameters

      • code: ErrorCode
      • message: string
      • Optionaloptions: { cause?: unknown; details?: unknown; fatal?: boolean }

      Returns EditorError

    cause?: unknown
    code: ErrorCode

    The stable code: branch on this, not on the message.

    details?: unknown

    Structured details, for some codes.

    fatal: boolean

    A fault: the editor rejects new operations and stays destroyable.

    message: string
    name: string
    stack?: string