Skip to content
Client
Server

Reference / @open-music-sdk/core / tErrorDetails

Interface: tErrorDetails ​

Defined in: packages/core/src/errors.ts:33

What is known about a failure beside its tag and message: each becomes a field of the error, and is left undefined where there is nothing to know.

Properties ​

cause? ​

ts
readonly optional cause?: unknown;

Defined in: packages/core/src/errors.ts:43

What went wrong underneath, such as what fetch rejected with on a NetworkError. Given, it becomes the error's cause.


errors? ​

ts
readonly optional errors?: readonly tError[];

Defined in: packages/core/src/errors.ts:37

Apple's parsed errors array, when the body had one.


issues? ​

ts
readonly optional issues?: readonly tValidationIssue[];

Defined in: packages/core/src/errors.ts:39

Validator issues, on a ValidationError.


retryAfterMs? ​

ts
readonly optional retryAfterMs?: number;

Defined in: packages/core/src/errors.ts:41

The delay a Retry-After header asked for, in milliseconds.


status? ​

ts
readonly optional status?: number;

Defined in: packages/core/src/errors.ts:35

HTTP status of the response that produced the error.

MIT licensed. Not affiliated with, endorsed by, or sponsored by Apple Inc. Apple Music and MusicKit are trademarks of Apple Inc.