01: /*
02:
03: Licensed to the Apache Software Foundation (ASF) under one or more
04: contributor license agreements. See the NOTICE file distributed with
05: this work for additional information regarding copyright ownership.
06: The ASF licenses this file to You under the Apache License, Version 2.0
07: (the "License"); you may not use this file except in compliance with
08: the License. You may obtain a copy of the License at
09:
10: http://www.apache.org/licenses/LICENSE-2.0
11:
12: Unless required by applicable law or agreed to in writing, software
13: distributed under the License is distributed on an "AS IS" BASIS,
14: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: See the License for the specific language governing permissions and
16: limitations under the License.
17:
18: */
19: package org.apache.batik.svggen;
20:
21: /**
22: *
23: * @version $Id: ErrorConstants.java 498740 2007-01-22 18:35:57Z dvholten $
24: */
25: public interface ErrorConstants {
26: // general errors
27:
28: String ERR_UNEXPECTED = "unexpected exception";
29: String ERR_CONTEXT_NULL = "generatorContext should not be null";
30:
31: /// image handling errors
32:
33: String ERR_IMAGE_DIR_NULL = "imageDir should not be null";
34: String ERR_IMAGE_DIR_DOES_NOT_EXIST = "imageDir does not exist";
35: String ERR_CANNOT_USE_IMAGE_DIR = "cannot convert imageDir to a URL value : ";
36: String ERR_IMAGE_NULL = "image should not be null";
37: String ERR_WRITE = "could not write image File ";
38: String ERR_READ = "could not read image File ";
39: String ERR_IMAGE_HANDLER_NOT_SUPPORTED = "imageHandler does not implement CachedImageHandler: ";
40:
41: // SVGGraphics2D errors
42:
43: String ERR_CANVAS_SIZE_NULL = "canvas size should not be null";
44: String ERR_XOR = "XOR Mode is not supported by Graphics2D SVG Generator";
45: String ERR_ACI = "AttributedCharacterIterator not supported yet";
46:
47: // XmlWriter
48: String ERR_PROXY = "proxy should not be null";
49: String INVALID_NODE = "Unable to write node of type ";
50:
51: // DOMGroup/TreeManager
52:
53: String ERR_GC_NULL = "gc should not be null";
54: String ERR_DOMTREEMANAGER_NULL = "domTreeManager should not be null";
55: String ERR_MAXGCOVERRIDES_OUTOFRANGE = "maxGcOverrides should be greater than zero";
56: String ERR_TOP_LEVEL_GROUP_NULL = "topLevelGroup should not be null";
57: String ERR_TOP_LEVEL_GROUP_NOT_G = "topLevelGroup should be a group <g>";
58:
59: // SVGClip/Font/Hint/Stroke descriptor
60: String ERR_CLIP_NULL = "clipPathValue should not be null";
61: String ERR_FONT_NULL = "none of the font description parameters should be null";
62: String ERR_HINT_NULL = "none of the hints description parameters should be null";
63: String ERR_STROKE_NULL = "none of the stroke description parameters should be null";
64:
65: // context
66: String ERR_MAP_NULL = "context map(s) should not be null";
67: String ERR_TRANS_NULL = "transformer stack should not be null";
68:
69: // SVGLookUp/RescaleOp
70: String ERR_ILLEGAL_BUFFERED_IMAGE_LOOKUP_OP = "BufferedImage LookupOp should have 1, 3 or 4 lookup arrays";
71: String ERR_SCALE_FACTORS_AND_OFFSETS_MISMATCH = "RescapeOp offsets and scaleFactor array length do not match";
72: String ERR_ILLEGAL_BUFFERED_IMAGE_RESCALE_OP = "BufferedImage RescaleOp should have 1, 3 or 4 scale factors";
73:
74: // SVGGeneratorContext
75: String ERR_DOM_FACTORY_NULL = "domFactory should not be null";
76: String ERR_IMAGE_HANDLER_NULL = "imageHandler should not be null";
77: String ERR_EXTENSION_HANDLER_NULL = "extensionHandler should not be null";
78: String ERR_ID_GENERATOR_NULL = "idGenerator should not be null";
79: String ERR_STYLE_HANDLER_NULL = "styleHandler should not be null";
80: String ERR_ERROR_HANDLER_NULL = "errorHandler should not be null";
81: }
|