[PATCH]: Remove exception ids from SAXParseException

Michael Glavassevich <[email protected]> Tue, 20 Apr 2004 23:36:25 -0400
Newsgroups gmane.text.xml.sax.devel
Message-ID <OF3F5FD603.8BBB546A-ON85256E7D.0012F2CB-85256E7D.0013D2FD@ca.ibm.com>
The version of SAXParseException in CVS still has methods for getting and 
setting exception ids. This patch removes these methods and the private 
field: exceptionId.

Thanks.



Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [email protected]
E-mail: [email protected]
org.xml.sax.SAXParseException.diff (application/octet-stream, 2.1 KB)
Index: src/org/xml/sax/SAXParseException.java
===================================================================
RCS file: /cvsroot/sax/sax2/src/org/xml/sax/SAXParseException.java,v
retrieving revision 1.10
diff -u -r1.10 SAXParseException.java
--- src/org/xml/sax/SAXParseException.java	8 Mar 2004 13:01:00 -0000	1.10
+++ src/org/xml/sax/SAXParseException.java	21 Apr 2004 03:13:32 -0000
@@ -231,48 +231,6 @@
 	return this.columnNumber;
     }
     
-    
-    /**
-     * Returns the identifier for the exception which is being reported.
-     *
-     * @return URI identifying the exception.  SAX standardizes the *
-     * identifiers for errors relating to the specifications that it
-     * relies * on for XML parsing (including <em>XML</em> and *
-     * <em>Namespaces in XML</em>).  * See <a
-     * href="package-summary.html#exceptions">the <em>org.xml.sax</em>
-     * * package summary</a> for more information.
-     *
-     * @since SAX 2.1
-     */
-    public String getExceptionId ()
-    {
-	return exceptionId;
-    }
-    
-    
-    /**
-     * Assigns the identifier for the exception which is being reported,
-     * if none has yet been assigned.
-     *
-     * @param id URI identifying the exception.  SAX standardizes the
-     * * identifiers for errors relating to the specifications that it
-     * relies * on for XML parsing (including <em>XML</em> and *
-     * <em>Namespaces in XML</em>).  * See <a
-     * href="package-summary.html#exceptions">the <em>org.xml.sax</em>
-     * * package summary</a> for more information.
-     * @exception IllegalStateException If the ID was already assigned.
-     *
-     * @since SAX 2.1
-     */
-    public void setExceptionId (String id)
-    {
-	if (exceptionId == null)
-	    exceptionId = id;
-	else
-	    throw new IllegalStateException ();
-    }
-    
-    
     
     //////////////////////////////////////////////////////////////////////
     // Internal state.
@@ -305,13 +263,6 @@
      * @see #getColumnNumber
      */
     private int columnNumber;
-    
-
-    /**
-     * @serial URI identifying the exception, or null
-     * @see #getExceptionId
-     */
-    private String	exceptionId;
     
 }
SAXParseException.java (application/octet-stream, 8.6 KB) - not displayed