IZoomException.java
4.02 KB
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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.scene7.is.util.error.ApplicationException
* org.jetbrains.annotations.Nullable
*/
package com.scene7.is.ps.provider;
import com.scene7.is.util.error.ApplicationException;
import org.jetbrains.annotations.Nullable;
public class IZoomException
extends ApplicationException {
private static final int CODE_BASE = 0;
private static int CODE = 0;
public static final int INVALID_REQUEST = CODE++;
public static final int ILLEGAL_LAYER_SOURCE = CODE++;
public static final int INVALID_LOCK = CODE++;
public static final int MAX_IMAGE_SIZE_EXCEEDED = CODE++;
public static final int ILLEGAL_VIEW_SOURCE = CODE++;
public static final int ILLEGAL_PATH = CODE++;
public static final int ABSOLUTE_URLS_FORBIDDEN = CODE++;
public static final int INVALID_URL = CODE++;
public static final int INVALID_CATALOG_ROOT_URL = CODE++;
public static final int XML_ATTRIBUTE_ERROR = CODE++;
public static final int XML_ENCODING_ERROR = CODE++;
public static final int XML_PARSING_ERROR = CODE++;
public static final int IR_SERVER_UNAVAILABLE = CODE++;
public static final int EMPTY_IMAGE = CODE++;
public static final int UNSUPPORTED_FORMAT = CODE++;
public static final int DEFAULT_CATALOG_FORBIDDEN = CODE++;
public static final int INVALID_SAVE_TO_FILE = CODE++;
public static final int FIT_MODIFIER_ERROR = CODE++;
public static final int IMAGE_NOT_FOUND = CODE++;
public static final int COULD_NOT_COMPUTE_EXPIRATION = CODE++;
public static final int FVCTX_REQUEST_EXCEEDS_NESTING_LIMIT = CODE++;
public static final int FVCTX_NO_FRAME_AT_START_IMAGESET = CODE++;
public static final int FVCTX_INVALID_COLOR_LABEL = CODE++;
public static final int FVCTX_INVALID_SEPARATOR = CODE++;
public static final int FVCTX_IMAGE_EXPECTED = CODE++;
public static final int FVCTX_FRAME_ERROR = CODE++;
public static final int FVCTX_IMAGE_ERROR = CODE++;
public static final int FVCTX_SWATCH_ERROR = CODE++;
public static final int FVCTX_PUBLIC_MAPS_TARGETS_ERROR = CODE++;
public static final int CLIENT_ADDRESS_FORBIDDEN = CODE++;
public static final int NESTED_MEDIA_SET_ERROR = CODE++;
public static final int MEDIA_SET_MISSING_VIDEO_FILE_ERROR = CODE++;
public static final int INVALID_MBR_SET_FORMAT = CODE++;
public static final int INVALID_VIDEO_SET = CODE++;
public static final int INVALID_TEMPLATE_OBJECT = CODE++;
public static final int INVALID_ENCODE = CODE++;
private static final String[] MESSAGES = new String[]{"invalid request", "illegal layer source", "invalid lock", "maximum image size exceeded", "illegal view source", "illegal path", "Absolute URLs are forbidden", "URL is not valid", "Catalog RootURL is not valid", "XML attribute error", "XML encoding error", "XML parsing error", "Image rendering server unavailable", "Image result is empty", "Unsupported format", "Access to default catalog is forbidden", "Save to file is disabled for this catalog", "Invalid use of fit modifier", "Image not found", "Could not conpute expiration", "Fvctx request exceeds frameset nesting limit", "Fvctx imageset does not start with a frame", "Fvctx color label is not valid", "Fvctx imageset contains invalid separator", "Fvctx image expected in imageset entry", "Error while processing Fvctx frame", "Error while processing Fvctx image", "Error while processing Fvctx swatch", "Error while generating Fvctx public maps and targets", "Client IP address forbidden", "Nested media sets are not supported", "Missing Video File", "Invalid mbrSet Format", "Invalid video set", "Invalid template object", "Invalid Encode Algorithm"};
public IZoomException(int code, String message, @Nullable Throwable e) {
super(code, message, e);
}
public IZoomException(int code, String message) {
super(code, message);
}
protected String getMessage(int code) {
return MESSAGES[code];
}
static {
assert (CODE == MESSAGES.length);
}
}