Newer
Older
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
package it.inaf.oats.vospace.exception;
// NFC: ErrorType usage is not covered in documentation, as far as I can see
// these are tentative default values.
import net.ivoa.xml.uws.v1.ErrorType;
public enum VOSpaceFaultEnum {
// pushto
OPERATION_NOT_SUPPORTED("Operation Not Supported", ErrorType.FATAL, "OperationNotSupported"),
INTERNAL_FAULT("Internal Fault", ErrorType.TRANSIENT, "InternalFault"),
PERMISSION_DENIED("Permission Denied", ErrorType.FATAL, "PermissionDenied"),
VIEW_NOT_SUPPORTED("View Not Supported", ErrorType.FATAL, "ViewNotSupported"),
PROTOCOL_NOT_SUPPORTED("Protocol Not Supported", ErrorType.FATAL, "ProtocolNotSupported"),
INVALID_ARGUMENT("Invalid Argument", ErrorType.FATAL, "InvalidArgument"),
NODE_BUSY("Node Busy", ErrorType.TRANSIENT, "NodeBusy"),
// additional for pullto
INVALID_URI("Invalid URI", ErrorType.FATAL, "InvalidURI"),
INVALID_DATA("Invalid Data", ErrorType.FATAL, "InvalidData"),
// additional for pullfrom
NODE_NOT_FOUND("Node Not Found", ErrorType.FATAL, "NodeNotFound"),
// additional for pushfrom
TRANSFER_FAILED("Transfer Failed", ErrorType.FATAL, "TransferFailed"),
// additional for movenode/copynode
DUPLICATE_NODE("Duplicate Node", ErrorType.FATAL, "DuplicateNode");
private final String faultRepresentation;
private final ErrorType type;
private final String faultCaptionForDetails;
private VOSpaceFaultEnum(String faultRepresentation,
ErrorType type,
String faultCaptionForDetails) {
this.faultRepresentation = faultRepresentation;
this.type = type;
this.faultCaptionForDetails = faultCaptionForDetails;
}
public String getFaultRepresentation() {
return this.faultRepresentation;
}
public ErrorType getType() {
return this.type;
}
public String getFaultCaptionForDetails() {
return faultCaptionForDetails;
}
}