1 26 27 package com.bull.eclipse.jonas.utils.xml; 28 29 import org.xml.sax.ErrorHandler ; 30 import org.xml.sax.SAXException ; 31 import org.xml.sax.SAXParseException ; 32 33 39 public class JErrorHandler implements ErrorHandler { 40 41 46 public void warning(SAXParseException exception) throws SAXException { 47 48 } 49 50 55 public void error(SAXParseException exception) throws SAXException { 56 throw new SAXException ("Parse Fatal Error at line " + exception.getLineNumber() + 57 " column " + exception.getColumnNumber() + ": " + 58 exception.getMessage()); 59 } 60 61 66 public void fatalError(SAXParseException exception) throws SAXException { 67 throw new SAXException ("Parse Fatal Error at line " + exception.getLineNumber() + 68 " column " + exception.getColumnNumber() + ": " + 69 exception.getMessage()); 70 } 71 } 72 | Popular Tags |