Skip to content

Class: ResponseSizeTooLargeError

Defined in: api.ts:316

An error that will be thrown by Fetcher.fetch when the response body from the external system exceeds packs platform limits

This error can be caught and retried by requesting less data from the external system through a smaller page size or omitting large fields.

Extends

  • Error

Properties

name

name: string = 'ResponseSizeTooLargeError'

Defined in: api.ts:320

The name of the error, for identification purposes.

Overrides

Error.name

Methods

isResponseSizeTooLargeError()

static isResponseSizeTooLargeError(err): err is ResponseSizeTooLargeError

Defined in: api.ts:328

Returns if the error is an instance of ResponseSizeTooLargeError. Note that instanceof may not work.

Parameters

Parameter Type
err any

Returns

err is ResponseSizeTooLargeError