Stone.js API
    Preparing search index...

    The default error handler for the Fetch adapter.

    It logs the error, derives a status code from the (typed) error, negotiates JSON vs plain text from the Accept header, and fills the raw-response builder — staying fully Web-standard, no Node-only content-negotiation libraries.

    Implements

    Index
    • Parameters

      • options: { blueprint: IBlueprint }

        The auto-wired blueprint.

      Returns FetchErrorHandler

    • Handle an adapter-level error.

      Parameters

      • error: Error

        The error to handle.

      • context: AdapterErrorContext<Request, Response, FetchExecutionContext>

        The adapter error context.

      Returns AdapterEventBuilderType<Response>

      The raw-response builder.