ResponseTooLargeError
A response rejected by the size cap: a permanent condition (the resource is simply too big), unlike a timeout or connection error that may succeed on retry. Callers branch on isTooLargeError rather than on this class.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ResponseTooLargeError(message: string): ResponseTooLargeError;Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
message | string | What was too large, and by which of the two caps. |
Returns
Section titled “Returns”ResponseTooLargeError
Overrides
Section titled “Overrides”Error.constructorProperties
Section titled “Properties”| Property | Modifier | Type | Default value | Description | Inherited from |
|---|---|---|---|---|---|
cause? | public | unknown | undefined | - | Error.cause |
code | readonly | string | TOO_LARGE_CODE | The stable marker isTooLargeError tests for. | - |
message | public | string | undefined | - | Error.message |
name | public | string | undefined | - | Error.name |
stack? | public | string | undefined | - | Error.stack |