You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by tk...@apache.org on 2001/05/02 17:50:09 UTC
cvs commit: xml-batik/sources/org/apache/batik/bridge BridgeContext.java SVGColorProfileElementBridge.java
tkormann 01/05/02 08:50:08
Modified: sources/org/apache/batik/bridge BridgeContext.java
SVGColorProfileElementBridge.java
Log:
Improve the error message when a use element references an entire document.
The error message is not perfect as the error is catched by a generic entry
point but should give a better hint of what is wrong (at least, it should mean
something understandable :)
Revision Changes Path
1.21 +2 -2 xml-batik/sources/org/apache/batik/bridge/BridgeContext.java
Index: BridgeContext.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/BridgeContext.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- BridgeContext.java 2001/05/02 14:33:33 1.20
+++ BridgeContext.java 2001/05/02 15:49:59 1.21
@@ -41,7 +41,7 @@
* a SVG DOM tree such as the current viewport or the user agent.
*
* @author <a href="mailto:Thierry.Kormann@sophia.inria.fr">Thierry Kormann</a>
- * @version $Id: BridgeContext.java,v 1.20 2001/05/02 14:33:33 tkormann Exp $
+ * @version $Id: BridgeContext.java,v 1.21 2001/05/02 15:49:59 tkormann Exp $
*/
public class BridgeContext implements ErrorConstants {
@@ -272,7 +272,7 @@
URIResolver ur = new URIResolver(document, documentLoader);
Element ref = ur.getElement(uri);
if (ref == null) {
- throw new BridgeException(e, ERR_URI_MALFORMED,
+ throw new BridgeException(e, ERR_URI_REFERENCE_A_DOCUMENT,
new Object[] {uri});
} else {
return ref;
1.8 +1 -3 xml-batik/sources/org/apache/batik/bridge/SVGColorProfileElementBridge.java
Index: SVGColorProfileElementBridge.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/SVGColorProfileElementBridge.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- SVGColorProfileElementBridge.java 2001/05/02 14:33:39 1.7
+++ SVGColorProfileElementBridge.java 2001/05/02 15:50:02 1.8
@@ -31,7 +31,7 @@
* <tt>ICC_ColorSpace</tt> object.
*
* @author <a href="mailto:vincent.hardy@eng.sun.com">Vincent Hardy</a>
- * @version $Id: SVGColorProfileElementBridge.java,v 1.7 2001/05/02 14:33:39 tkormann Exp $ */
+ * @version $Id: SVGColorProfileElementBridge.java,v 1.8 2001/05/02 15:50:02 tkormann Exp $ */
public class SVGColorProfileElementBridge extends AbstractSVGBridge
implements ErrorConstants {
@@ -99,11 +99,9 @@
URL url = new URL(baseURL, href);
p = ICC_Profile.getInstance(url.openStream());
} catch(MalformedURLException e) {
- e.printStackTrace(System.err);
throw new BridgeException(paintedElement, ERR_URI_MALFORMED,
new Object[] {href});
} catch(IOException e) {
- e.printStackTrace(System.err);
throw new BridgeException(paintedElement, ERR_URI_IO,
new Object[] {href});
// ??? IS THAT AN ERROR FOR THE SVG SPEC ???
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org