GetError<T>: ((resText, errorCode?) => Promise<T>)

In the case that an HTTP endpoint throws an error, responds with anything other than a 200 status code, or in the case that a sibling GetResultValue throws an error/rejects, this function will return an APIResult representing a 'failure' or 'error' state.

Type Parameters

Type declaration

    • (resText, errorCode?): Promise<T>
    • Parameters

      • resText: string
      • Optional errorCode: number

      Returns Promise<T>

Generated using TypeDoc