TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ParseResponseError<T>

    ParseResponseError: (
        apiError: APIErrorResponse<T>,
        serviceName: string,
    ) => SDKServiceError

    Function type for parsing API error responses into SDK service errors.

    Type Parameters

    • T = DefaultAPIResponseErrorBody

      The type of the error response body (defaults to DefaultAPIResponseErrorBody)

    Type Declaration

      • (apiError: APIErrorResponse<T>, serviceName: string): SDKServiceError
      • Parameters

        • apiError: APIErrorResponse<T>

          The API error response received from the server

        • serviceName: string

          The name of the service that encountered the error

        Returns SDKServiceError

        A structured SDKServiceError object