1
|
package eu.dnetlib.data.information.oai.publisher;
|
2
|
|
3
|
public enum OAIError {
|
4
|
badArgument {
|
5
|
|
6
|
@Override
|
7
|
public String getMessage() {
|
8
|
return "The request includes illegal arguments, is missing required arguments, includes a repeated argument, or values for arguments have an illegal syntax.";
|
9
|
}
|
10
|
},
|
11
|
badVerb {
|
12
|
|
13
|
@Override
|
14
|
public String getMessage() {
|
15
|
return "Value of the verb argument is not a legal OAI-PMH verb, the verb argument is missing, or the verb argument is repeated.";
|
16
|
}
|
17
|
},
|
18
|
cannotDisseminateFormat {
|
19
|
|
20
|
@Override
|
21
|
public String getMessage() {
|
22
|
return "The metadata format identified by the value given for the metadataPrefix argument is not supported by the item or by the repository.";
|
23
|
}
|
24
|
},
|
25
|
idDoesNotExist {
|
26
|
|
27
|
@Override
|
28
|
public String getMessage() {
|
29
|
return "The value of the identifier argument is unknown or illegal in this repository.";
|
30
|
}
|
31
|
},
|
32
|
noMetadataFormats {
|
33
|
|
34
|
@Override
|
35
|
public String getMessage() {
|
36
|
return "There are no metadata formats available for the specified item.";
|
37
|
}
|
38
|
},
|
39
|
noSetHierarchy {
|
40
|
|
41
|
@Override
|
42
|
public String getMessage() {
|
43
|
return "The repository does not support sets.";
|
44
|
}
|
45
|
},
|
46
|
noRecordsMatch {
|
47
|
|
48
|
@Override
|
49
|
public String getMessage() {
|
50
|
return "The combination of the values of the from, until, set and metadataPrefix arguments results in an empty list.";
|
51
|
}
|
52
|
},
|
53
|
badResumptionToken {
|
54
|
|
55
|
@Override
|
56
|
public String getMessage() {
|
57
|
return "The value of the resumptionToken argument is invalid or expired.";
|
58
|
}
|
59
|
};
|
60
|
|
61
|
public abstract String getMessage();
|
62
|
|
63
|
}
|