1 /** 2 * Copyright (C) 2002 Kelua SA 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 */ 18 19 package org.objectweb.kilim.repository; 20 21 import java.io.IOException; 22 import javax.xml.parsers.ParserConfigurationException; 23 24 import org.objectweb.kilim.KilimException; 25 import org.xml.sax.SAXException; 26 import org.xml.sax.SAXParseException; 27 28 /** 29 * @author dutoo, horn 30 * Parsing errors handling proxy. This includes some description model specific exceptions 31 * and some SAX specific ones. 32 */ 33 public interface ParserErrorHandler { 34 35 /** 36 * Method setTemplateName. 37 * @param aName : the name of the template being parsed. 38 */ 39 void setTemplateName(String aName); 40 41 /** 42 * @param ioex the exception to be handled 43 */ 44 void handleIOException(IOException ioex); 45 /** 46 * @param saxex the exception to be handled 47 */ 48 void handleSAXException(SAXException saxex); 49 /** 50 * @param pcex the exception to be handled 51 */ 52 void handleParserConfigurationException(ParserConfigurationException pcex); 53 /** 54 * @param saxpex the exception to be handled 55 */ 56 void handleWarningSAXParseException(SAXParseException saxpex); 57 /** 58 * @param saxpex the exception to be handled 59 */ 60 void handleErrorSAXParseException(SAXParseException saxpex); 61 /** 62 * @param saxpex the exception to be handled 63 */ 64 void handleFatalSAXParseException(SAXParseException saxpex); 65 66 /** 67 * Method handleKilimException. 68 * @param ex : 69 */ 70 void handleKilimException(KilimException ex); 71 } 72