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?
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?
readonly optional errors?: readonly tError[];Defined in: packages/core/src/errors.ts:37
Apple's parsed errors array, when the body had one.
issues?
readonly optional issues?: readonly tValidationIssue[];Defined in: packages/core/src/errors.ts:39
Validator issues, on a ValidationError.
retryAfterMs?
readonly optional retryAfterMs?: number;Defined in: packages/core/src/errors.ts:41
The delay a Retry-After header asked for, in milliseconds.
status?
readonly optional status?: number;Defined in: packages/core/src/errors.ts:35
HTTP status of the response that produced the error.