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