Skip to content

Documentation / @ember-data/request / index / StructuredErrorDocument

Interface: StructuredErrorDocument<T>

Defined in: warp-drive-packages/core/declarations/types/request.d.ts:190

When a Future rejects, it throws either an Error an AggregateError or a DOMException that maintains the { request, response, content } shape but is also an Error instance itself.

If using the error originates from the Fetch | Fetch Handler the error will be a FetchError

Extends

Type Parameters

T

T = unknown

Properties

content?

ts
optional content: T;

Defined in: warp-drive-packages/core/declarations/types/request.d.ts:201


error

ts
error: string | object;

Defined in: warp-drive-packages/core/declarations/types/request.d.ts:200


request

ts
request: ImmutableRequestInfo;

Defined in: warp-drive-packages/core/declarations/types/request.d.ts:198

See

ImmutableRequestInfo


response

ts
response: 
  | null
  | Response
  | ResponseInfo;

Defined in: warp-drive-packages/core/declarations/types/request.d.ts:199

Released under the MIT License.