00001 00027 package org.objectweb.jonas_lib.deployment.digester; 00028 00029 import org.xml.sax.ErrorHandler; 00030 import org.xml.sax.SAXException; 00031 import org.xml.sax.SAXParseException; 00032 00038 public class JErrorHandler implements ErrorHandler { 00039 00046 public void warning(SAXParseException exception) throws SAXException { 00047 00048 } 00049 00056 public void error(SAXParseException exception) throws SAXException { 00057 throw new SAXException("Parse Fatal Error at line " + exception.getLineNumber() + " column " 00058 + exception.getColumnNumber() + ": " + exception.getMessage()); 00059 } 00060 00067 public void fatalError(SAXParseException exception) throws SAXException { 00068 throw new SAXException("Parse Fatal Error at line " + exception.getLineNumber() + " column " 00069 + exception.getColumnNumber() + ": " + exception.getMessage()); 00070 } 00071 }