@vivliostyle/core
    Preparing search index...

    Function handle

    • Creates a new frame and runs code in its context, catching synchronous and asynchronous errors. If an error occurs, onErr is run (in the context of the same frame). As usual, onErr is supposed either produce a result or raise an exception.

      Type Parameters

      • T

      Parameters

      • name: any
      • code: (p1: Frame<T>) => void
      • onErr: (p1: Frame<T>, p2: Error) => void

      Returns Result<T>