Class

MusicKit.MKError

A class that describes an error that may occur when using MusicKit JS, including server and local errors.

Declaration

interface MusicKit.MKError

Topics

Instance Properties

ACCESS_DENIED

Error code indicating that you don't have permission to access the endpoint, media item, or content.

AUTHORIZATION_ERROR

Error code indicating the authorization was rejected.

CONFIGURATION_ERROR

Error code indicating a MusicKit JS configuration error.

CONTENT_RESTRICTED

Error code indicating you don't have permission to access this content, due to content restrictions.

INVALID_ARGUMENTS

Error code indicating the parameters provided for this method are invalid.

MEDIA_CERTIFICATE

Error code indicating that the VM certificate could not be applied.

MEDIA_DESCRIPTOR

Error code indicating that the media item descriptor is invalid.

MEDIA_KEY

Error code indicating that a DRM key could not be generated.

MEDIA_LICENSE

Error code indicating a DRM license error.

MEDIA_PLAYBACK

Error code indicating a media playback error.

MEDIA_SESSION

Error code indicating that an EME session could not be created.

NETWORK_ERROR

Error code indicating a network error.

NOT_FOUND

Error code indicating that the resource was not found.

QUOTA_EXCEEDED

Error code indicating that you have exceeded the Apple Music API quota.

SERVICE_UNAVAILABLE

Error code indicating the MusicKit service could not be reached.

SUBSCRIPTION_ERROR

Error code indicating that the user's Apple Music subscription has expired.

UNKNOWN_ERROR

Error code indicating an unknown error.

UNSUPPORTED_ERROR

Error code indicating that the operation is not supported.

description

A description of the error that occurred.

errorCode

The error code for this error.