Library API
    Preparing search index...

    Function raise

    • Global Error Boundary Utility. Decouples the decision to throw an error from the act of logging it.

      Parameters

      • err: string | Error

        The Error object or error string to raise

      • context: BoundaryContext = {}

        Optional boundary context configuration

      Returns void

      raise('Invalid input', { catch: true, logger: myLogger });