Skip to main content

ParallelModelApiException

ParallelModel TypeScript SDK


Class: ParallelModelApiException

Defined in: transport.ts:20

Base error for unsuccessful HTTP responses, retaining the status, response body and headers.

Extends​

Extended by​

Constructors​

Constructor​

new ParallelModelApiException(statusCode, body, headers, message?): ParallelModelApiException

Defined in: transport.ts:29

Creates a ParallelModelApiException instance.

Parameters​

statusCode​

number

HTTP status code returned by the server.

body​

unknown

HTTP response body or request body, depending on the operation.

headers​

Record<string, string>

HTTP headers associated with the request or response.

message?​

string

Error message to expose to callers.

Returns​

ParallelModelApiException

Overrides​

ParallelModelException.constructor

Properties​

body​

readonly body: unknown

Defined in: transport.ts:29

HTTP response body or request body, depending on the operation.


headers​

readonly headers: Record<string, string>

Defined in: transport.ts:29

HTTP headers associated with the request or response.


statusCode​

readonly statusCode: number

Defined in: transport.ts:29

HTTP status code returned by the server.

Accessors​

detail​

Get Signature​

get detail(): string | undefined

Defined in: transport.ts:31

Returns the detail field of an object response body when present.

Returns​

string | undefined


retryAfter​

Get Signature​

get retryAfter(): string

Defined in: transport.ts:33

Returns the Retry-After response header when present.

Returns​

string