Skip to content
module@warp-drive/legacy/adapter/error @legacy

Interface AdapterRequestError<T> ​

Defined in: warp-drive-packages/legacy/src/adapter/error.ts:40

The shape of the errors thrown/returned by AdapterError and its subclasses.

Extends ​

Type Parameters ​

T ​

T extends string = string

Properties ​

code ​

ts
code: T;

Defined in: warp-drive-packages/legacy/src/adapter/error.ts:48

A short code identifying the kind of error, e.g. 'NotFoundError'.


errors ​

ts
errors: ApiError[];

Defined in: warp-drive-packages/legacy/src/adapter/error.ts:52

The {json:api} formatted errors associated with the request.


isAdapterError ​

ts
isAdapterError: true;

Defined in: warp-drive-packages/legacy/src/adapter/error.ts:44

A property signifying that an Error uses the AdapterRequestError interface.

Released under the MIT License.