001: /*
002:
003: Licensed to the Apache Software Foundation (ASF) under one or more
004: contributor license agreements. See the NOTICE file distributed with
005: this work for additional information regarding copyright ownership.
006: The ASF licenses this file to You under the Apache License, Version 2.0
007: (the "License"); you may not use this file except in compliance with
008: the License. You may obtain a copy of the License at
009:
010: http://www.apache.org/licenses/LICENSE-2.0
011:
012: Unless required by applicable law or agreed to in writing, software
013: distributed under the License is distributed on an "AS IS" BASIS,
014: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015: See the License for the specific language governing permissions and
016: limitations under the License.
017:
018: */
019: package org.apache.batik.bridge;
020:
021: /**
022: * The error code.
023: *
024: * @author <a href="mailto:tkormann@apache.org">Thierry Kormann</a>
025: * @version $Id: ErrorConstants.java 478160 2006-11-22 13:35:06Z dvholten $
026: */
027: public interface ErrorConstants {
028:
029: /**
030: * The error code when a required attribute is missing.
031: * <pre>
032: * {0} = the name of the attribute
033: * </pre>
034: */
035: String ERR_ATTRIBUTE_MISSING = "attribute.missing";
036:
037: /**
038: * The error code when an attribute has a syntax error.
039: * <pre>
040: * {0} = the name of the attribute
041: * {1} = the wrong value
042: * </pre>
043: */
044: String ERR_ATTRIBUTE_VALUE_MALFORMED = "attribute.malformed";
045:
046: /**
047: * The error code when a length, which must be positive, is negative.
048: * <pre>
049: * {0} = the name of the attribute
050: * </pre>
051: */
052: String ERR_LENGTH_NEGATIVE = "length.negative";
053:
054: /**
055: * The error code when a CSS length is negative.
056: * <pre>
057: * {0} = property
058: * </pre>
059: */
060: String ERR_CSS_LENGTH_NEGATIVE = "css.length.negative";
061:
062: /**
063: * The error code when a URI specified in a CSS property
064: * referenced a bad element.
065: * <pre>
066: * {0} = the uri
067: * </pre>
068: */
069: String ERR_CSS_URI_BAD_TARGET = "css.uri.badTarget";
070:
071: /**
072: * The error code when a specified URI references a bad element.
073: * <pre>
074: * {0} = the uri
075: * </pre>
076: */
077: String ERR_URI_BAD_TARGET = "uri.badTarget";
078:
079: /**
080: * The error code when the bridge detected circular dependencies
081: * while resolving a list of URI.
082: * <pre>
083: * {0} = the uri
084: * </pre>
085: */
086: String ERR_XLINK_HREF_CIRCULAR_DEPENDENCIES = "xlink.href.circularDependencies";
087:
088: /**
089: * The error code when the bridge try to load a URI
090: * {0} = the uri
091: */
092: String ERR_URI_MALFORMED = "uri.malformed";
093:
094: /**
095: * The error code when the bridge encoutered an I/O error while
096: * loading a URI.
097: * <pre>
098: * {0} = the uri
099: * </pre>
100: */
101: String ERR_URI_IO = "uri.io";
102:
103: /**
104: * The error code when the bridge encountered a SecurityException
105: * while loading a URI
106: * {0} = the uri
107: */
108: String ERR_URI_UNSECURE = "uri.unsecure";
109:
110: /**
111: * The error code when the bridge tries to referenced an invalid
112: * node inside a document.
113: * <pre>
114: * {0} = the uri
115: * </pre>
116: */
117: String ERR_URI_REFERENCE_A_DOCUMENT = "uri.referenceDocument";
118:
119: /**
120: * The error code when the bridge tries to an image and the image
121: * format is not supported.
122: * <pre>
123: * {0} = the uri
124: * </pre>
125: */
126: String ERR_URI_IMAGE_INVALID = "uri.image.invalid";
127:
128: /**
129: * The error code when the bridge tries to read an image and the image
130: * url can't be opened or the contents aren't usable.
131: * <pre>
132: * {0} = the uri
133: * {1} = the reason it can't be opened.
134: * </pre>
135: */
136: String ERR_URI_IMAGE_BROKEN = "uri.image.broken";
137:
138: /**
139: * The error code when the bridge tries to read an image and the image
140: * url can't be opened:
141: * <pre>
142: * {0} = the reason it can't be opened.
143: * </pre>
144: */
145: String URI_IMAGE_ERROR = "uri.image.error";
146:
147: }
|