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