01: package csdl.jblanket.report.element;
02:
03: import org.xml.sax.ErrorHandler;
04: import org.xml.sax.SAXException;
05: import org.xml.sax.SAXParseException;
06:
07: /**
08: * Handles SAX errors for the report.
09: * <p>
10: * NOTE: Method descriptions taken from org.xml.sax.ErrorHandler.
11: *
12: * @author Joy M. Agustin
13: * @version $Id: ElementErrorHandler.java,v 1.1 2004/11/07 00:32:39 timshadel Exp $
14: */
15: public class ElementErrorHandler implements ErrorHandler {
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 exception) throws SAXException {
24: throw new SAXException("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 exception)
34: throws SAXException {
35: throw new SAXException("Fatal error encountered", exception);
36: }
37:
38: /**
39: * Processes nodification of a warning.
40: *
41: * @param exception the warning information encapsulated in a SAX parse exception.
42: * @throws SAXException if any SAX error occurs.
43: */
44: public void warning(SAXParseException exception)
45: throws SAXException {
46: throw new SAXException("Warning encountered", exception);
47: }
48: }
|