-
Notifications
You must be signed in to change notification settings - Fork 6
/
ierror.js
47 lines (46 loc) · 1.15 KB
/
ierror.js
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
/*
Error codes that can be referenced in classes and tests.
*/
function iError(code) {
this.codes = code;
switch(code)
{
case 0:
this.message = 'Multiple results';
break;
case 1:
this.message = 'Zero results';
break;
case 2:
this.message = 'Could not parse results';
break;
case 3:
this.message = 'Null results';
break;
case 4:
this.message = 'iResults.getAlbum returns null';
break;
case 10:
this.message = 'iResults.getAlbum target not found';
break;
case 5:
this.message = 'iResults.getAlbum bad wrapperType or collectionType';
break;
case 6:
this.message = 'iResults.getTrack bad wrapperType or kind';
break;
case 7:
this.message = 'iResults.getTrack returns null';
break;
case 8:
this.message = 'responseEnd: non-supported data type';
break;
case 9:
this.message = 'iResults.getTrack target not found';
break;
case 11:
this.message = 'iResults.getArtist target not found';
break;
}
};
exports.iError = iError;