Client
Server
Reference / @open-music-sdk/core / isAppleMusicError
function isAppleMusicError<Tag>(e, tag?): e is AppleMusicError<Tag>;Defined in: packages/core/src/errors.ts:101
Whether e is an AppleMusicError, and of one kind when tag names it: the guard to narrow a caught error with.
Tag extends tErrorTag = tErrorTag
unknown
What was caught.
Tag
The one kind to ask for, such as "RateLimited"; left out, any kind will do.
e is AppleMusicError<Tag>
Whether e is an AppleMusicError by shape, from any copy of this package, and its _tag is tag where one was given.