KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > svggen > ErrorConstants


1 /*
2
3    Copyright 2001 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17  */

18 package org.apache.batik.svggen;
19
20 public interface ErrorConstants {
21     // general errors
22

23     public static final String JavaDoc ERR_UNEXPECTED =
24         "unexpected exception";
25     public static final String JavaDoc ERR_CONTEXT_NULL =
26         "generatorContext should not be null";
27
28     /// image handling errors
29

30     public static final String JavaDoc ERR_IMAGE_DIR_NULL =
31         "imageDir should not be null";
32     public static final String JavaDoc ERR_IMAGE_DIR_DOES_NOT_EXIST =
33         "imageDir does not exist";
34     public static final String JavaDoc ERR_CANNOT_USE_IMAGE_DIR =
35         "cannot convert imageDir to a URL value : ";
36     public static final String JavaDoc ERR_IMAGE_NULL =
37         "image should not be null";
38     public static final String JavaDoc ERR_WRITE =
39         "could not write image File ";
40     public static final String JavaDoc ERR_READ =
41         "could not read image File ";
42     public static final String JavaDoc ERR_IMAGE_HANDLER_NOT_SUPPORTED =
43         "imageHandler does not implement CachedImageHandler: ";
44
45     // SVGGraphics2D errors
46

47     public static final String JavaDoc ERR_CANVAS_SIZE_NULL =
48         "canvas size should not be null";
49     public static final String JavaDoc ERR_XOR =
50         "XOR Mode is not supported by Graphics2D SVG Generator";
51     public static final String JavaDoc ERR_ACI =
52         "AttributedCharacterIterator not supported yet";
53
54     // XmlWriter
55
public static final String JavaDoc ERR_PROXY =
56         "proxy should not be null";
57     public static final String JavaDoc INVALID_NODE =
58         "Unable to write node of type ";
59
60     // DOMGroup/TreeManager
61

62     public static final String JavaDoc ERR_GC_NULL = "gc should not be null";
63     public static final String JavaDoc ERR_DOMTREEMANAGER_NULL =
64         "domTreeManager should not be null";
65     public static final String JavaDoc ERR_MAXGCOVERRIDES_OUTOFRANGE =
66         "maxGcOverrides should be greater than zero";
67     public static final String JavaDoc ERR_TOP_LEVEL_GROUP_NULL =
68         "topLevelGroup should not be null";
69     public static final String JavaDoc ERR_TOP_LEVEL_GROUP_NOT_G =
70         "topLevelGroup should be a group <g>";
71
72     // SVGClip/Font/Hint/Stroke descriptor
73
public static final String JavaDoc ERR_CLIP_NULL = "clipPathValue should not be null";
74     public static final String JavaDoc ERR_FONT_NULL =
75         "none of the font description parameters should be null";
76     public static final String JavaDoc ERR_HINT_NULL =
77         "none of the hints description parameters should be null";
78     public static final String JavaDoc ERR_STROKE_NULL =
79         "none of the stroke description parameters should be null";
80
81     // context
82
public static final String JavaDoc ERR_MAP_NULL = "context map(s) should not be null";
83     public static final String JavaDoc ERR_TRANS_NULL =
84         "transformer stack should not be null";
85
86     // SVGLookUp/RescaleOp
87
public static final String JavaDoc ERR_ILLEGAL_BUFFERED_IMAGE_LOOKUP_OP =
88         "BufferedImage LookupOp should have 1, 3 or 4 lookup arrays";
89     public static final String JavaDoc ERR_SCALE_FACTORS_AND_OFFSETS_MISMATCH =
90         "RescapeOp offsets and scaleFactor array length do not match";
91     public static final String JavaDoc ERR_ILLEGAL_BUFFERED_IMAGE_RESCALE_OP =
92         "BufferedImage RescaleOp should have 1, 3 or 4 scale factors";
93
94
95     // SVGGeneratorContext
96
public static final String JavaDoc ERR_DOM_FACTORY_NULL =
97         "domFactory should not be null";
98     public static final String JavaDoc ERR_IMAGE_HANDLER_NULL =
99         "imageHandler should not be null";
100     public static final String JavaDoc ERR_EXTENSION_HANDLER_NULL =
101         "extensionHandler should not be null";
102     public static final String JavaDoc ERR_ID_GENERATOR_NULL =
103         "idGenerator should not be null";
104     public static final String JavaDoc ERR_STYLE_HANDLER_NULL =
105         "styleHandler should not be null";
106     public static final String JavaDoc ERR_ERROR_HANDLER_NULL =
107         "errorHandler should not be null";
108 }
109
Popular Tags