1 25 26 package org.objectweb.easybeans.util.xml; 27 28 import org.xml.sax.ErrorHandler ; 29 import org.xml.sax.SAXException ; 30 import org.xml.sax.SAXParseException ; 31 32 38 public class EasyBeansErrorHandler implements ErrorHandler { 39 40 45 public void warning(final SAXParseException exception) throws SAXException { 46 47 } 48 49 54 public void error(final SAXParseException exception) throws SAXException { 55 throw new SAXException ("Parse Fatal Error at line " + exception.getLineNumber() + " column " 56 + exception.getColumnNumber() + ": " + exception.getMessage()); 57 } 58 59 64 public void fatalError(final SAXParseException exception) throws SAXException { 65 throw new SAXException ("Parse Fatal Error at line " + exception.getLineNumber() + " column " 66 + exception.getColumnNumber() + ": " + exception.getMessage()); 67 } 68 69 } 70 | Popular Tags |