@modelhealth/modelhealth
    Preparing search index...

    Function mapModelHealthError

    • Reconstructs the specific ModelHealthError subclass from a thrown WASM error.

      Falls back to the generic ModelHealthError (or wraps a non-Error throw as one) when the thrown value doesn't carry recognized code/subCode/statusCode properties — e.g. an error from outside the WASM boundary.

      Parameters

      • err: unknown

      Returns ModelHealthError