KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > csdl > jblanket > app > tree > NodeErrorHandler


1 package csdl.jblanket.app.tree;
2
3 import org.xml.sax.ErrorHandler JavaDoc;
4 import org.xml.sax.SAXException JavaDoc;
5 import org.xml.sax.SAXParseException JavaDoc;
6
7 /**
8  * Handles SAX errors for the exclude individual methods application.
9  * <p>
10  * NOTE: Method descriptions taken from org.xml.sax.ErrorHandler.
11  *
12  * @author Joy M. Agustin
13  * @version $Id: NodeErrorHandler.java,v 1.1 2004/11/07 00:32:40 timshadel Exp $
14  */

15 public class NodeErrorHandler implements ErrorHandler JavaDoc {
16
17   /**
18    * Processes nodifications of a recoverage error.
19    *
20    * @param exception the error information encapsulated in a SAX parse exception.
21    * @throws SAXException if any SAX error occurs.
22    */

23   public void error(SAXParseException JavaDoc exception) throws SAXException JavaDoc {
24     throw new SAXException JavaDoc("Error encountered", exception);
25   }
26
27   /**
28    * Processes notification of a non-recoverable error.
29    *
30    * @param exception the error information encapsulated in a SAX parse exception.
31    * @throws SAXException if any SAX error occurs.
32    */

33   public void fatalError(SAXParseException JavaDoc exception) throws SAXException JavaDoc {
34     throw new SAXException JavaDoc("Fatal error encountered", exception);
35   }
36
37   /**
38    * Processes nodification of a warning.
39    *
40    * @param exception the warning information encapsulated in a SAX parse exception.
41    * @throws SAXException if any SAX error occurs.
42    */

43   public void warning(SAXParseException JavaDoc exception) throws SAXException JavaDoc {
44     throw new SAXException JavaDoc("Warning encountered", exception);
45   }
46 }
Popular Tags