-
Notifications
You must be signed in to change notification settings - Fork 0
/
MusicKit.MKError.d.ts
91 lines (91 loc) · 2.9 KB
/
MusicKit.MKError.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
declare namespace MusicKit {
/**
* A class that describes an error that may occur when using MusicKit JS,
* including server and local errors.
*/
class MKError extends Error {
/**
* The error code for this error.
*/
errorCode: string;
/**
* A description of the error that occurred.
*/
description?: string | undefined;
/**
* Error code indicating that you don't have permission to access the
* endpoint, media item, or content.
*/
static ACCESS_DENIED: string;
/**
* Error code indicating the authorization was rejected.
*/
static AUTHORIZATION_ERROR: string;
/**
* Error code indicating a MusicKit JS configuration error.
*/
static CONFIGURATION_ERROR: string;
/**
* Error code indicating you don't have permission to access this content,
* due to content restrictions.
*/
static CONTENT_RESTRICTED: string;
/**
* Error code indicating the parameters provided for this method are invalid.
*/
static INVALID_ARGUMENTS: string;
/**
* Error code indicating that the VM certificate could not be applied.
*/
static MEDIA_CERTIFICATE: string;
/**
* Error code indicating that the media item descriptor is invalid.
*/
static MEDIA_DESCRIPTOR: string;
/**
* Error code indicating that a DRM key could not be generated.
*/
static MEDIA_KEY: string;
/**
* Error code indicating a DRM license error.
*/
static MEDIA_LICENSE: string;
/**
* Error code indicating a media playback error.
*/
static MEDIA_PLAYBACK: string;
/**
* Error code indicating that an EME session could not be created.
*/
static MEDIA_SESSION: string;
/**
* Error code indicating a network error.
*/
static NETWORK_ERROR: string;
/**
* Error code indicating that the resource was not found.
*/
static NOT_FOUND: string;
/**
* Error code indicating that you have exceeded the Apple Music API quota.
*/
static QUOTA_EXCEEDED: string;
static SERVER_ERROR: string;
/**
* Error code indicating the MusicKit service could not be reached.
*/
static SERVICE_UNAVAILABLE: string;
/**
* Error code indicating that the user's Apple Music subscription has expired.
*/
static SUBSCRIPTION_ERROR: string;
/**
* Error code indicating an unknown error.
*/
static UNKNOWN_ERROR: string;
/**
* Error code indicating that the operation is not supported.
*/
static UNSUPPORTED_ERROR: string;
}
}