@evlmaistrenko/tools-fetch
    Preparing search index...

    Class ResponseErrorBase<TParsed>Abstract

    Represents error of fetch response

    Type Parameters

    • TParsed

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    parsedValue?: TParsed

    Store for parsed response body

    response: Response

    Corresponded response

    Accessors

    Methods

    • Checks response for errors

      Parameters

      • response: Response

        Response to check

      • parse: boolean = true

        Whether to parse response body

      Returns Promise<Response>

      Response

      await fetch("<some-url>").then((error) => ResponseError.check(error))