Stone.js API
    Preparing search index...

    Variable buildAdapterErrorComponentConst

    buildAdapterErrorComponent: <
        RawEventType,
        RawResponseType,
        ExecutionContextType,
    >(
        blueprint: IBlueprint,
        context: AdapterErrorContext<
            RawEventType,
            RawResponseType,
            ExecutionContextType,
        >,
        statusCode: number,
        error: any,
        fallback?: ElementType,
    ) => Promise<ReactNode | undefined>

    Get adapter error component.

    This error handler is different from the kernel error handler. Because there is no container at adapter level.

    Type Declaration

      • <RawEventType, RawResponseType, ExecutionContextType>(
            blueprint: IBlueprint,
            context: AdapterErrorContext<
                RawEventType,
                RawResponseType,
                ExecutionContextType,
            >,
            statusCode: number,
            error: any,
            fallback?: ElementType,
        ): Promise<ReactNode | undefined>
      • Type Parameters

        • RawEventType
        • RawResponseType
        • ExecutionContextType

        Parameters

        • blueprint: IBlueprint

          The blueprint.

        • context: AdapterErrorContext<RawEventType, RawResponseType, ExecutionContextType>

          The context of the adapter.

        • statusCode: number

          The status code of the error.

        • error: any

          The error object.

        • Optionalfallback: ElementType

        Returns Promise<ReactNode | undefined>

        The resolved layout element.