1 package csdl.jblanket.report.element; 2 3 import org.xml.sax.ErrorHandler ; 4 import org.xml.sax.SAXException ; 5 import org.xml.sax.SAXParseException ; 6 7 15 public class ElementErrorHandler implements ErrorHandler { 16 17 23 public void error(SAXParseException exception) throws SAXException { 24 throw new SAXException ("Error encountered", exception); 25 } 26 27 33 public void fatalError(SAXParseException exception) throws SAXException { 34 throw new SAXException ("Fatal error encountered", exception); 35 } 36 37 43 public void warning(SAXParseException exception) throws SAXException { 44 throw new SAXException ("Warning encountered", exception); 45 } 46 } | Popular Tags |