You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by vm...@apache.org on 2003/09/25 20:42:21 UTC
cvs commit: xml-fop/src/java/org/apache/fop/apps FOPException.java
vmote 2003/09/25 11:42:21
Modified: src/java/org/apache/fop/apps FOPException.java
Log:
port maintenance branch improvements in apps/FOPException to the trunk
Revision Changes Path
1.4 +20 -0 xml-fop/src/java/org/apache/fop/apps/FOPException.java
Index: FOPException.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/apps/FOPException.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- FOPException.java 1 Sep 2003 13:31:24 -0000 1.3
+++ FOPException.java 25 Sep 2003 18:42:20 -0000 1.4
@@ -60,6 +60,9 @@
private static final String EXCEPTION_SEPARATOR = "\n---------\n";
private Throwable exception;
+ private String systemId;
+ private int line;
+ private int column;
/**
* create a new FOP Exception
@@ -70,6 +73,13 @@
super(message);
}
+ public FOPException(String message, String systemId, int line, int column) {
+ super(message);
+ this.systemId = systemId;
+ this.line = line;
+ this.column = column;
+ }
+
/**
*
* @param e Throwable object
@@ -103,6 +113,16 @@
*/
public Throwable getException() {
return exception;
+ }
+
+ public void setLocation(String systemId, int line, int column) {
+ this.systemId = systemId;
+ this.line = line;
+ this.column = column;
+ }
+
+ public boolean isLocationSet() {
+ return line>=0;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org