KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > kilim > repository > ParserErrorHandler


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 JavaDoc;
22 import javax.xml.parsers.ParserConfigurationException JavaDoc;
23
24 import org.objectweb.kilim.KilimException;
25 import org.xml.sax.SAXException JavaDoc;
26 import org.xml.sax.SAXParseException JavaDoc;
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 JavaDoc aName);
40    
41    /**
42     * @param ioex the exception to be handled
43     */

44    void handleIOException(IOException JavaDoc ioex);
45    /**
46     * @param saxex the exception to be handled
47     */

48    void handleSAXException(SAXException JavaDoc saxex);
49    /**
50     * @param pcex the exception to be handled
51     */

52    void handleParserConfigurationException(ParserConfigurationException JavaDoc pcex);
53    /**
54     * @param saxpex the exception to be handled
55     */

56    void handleWarningSAXParseException(SAXParseException JavaDoc saxpex);
57    /**
58     * @param saxpex the exception to be handled
59     */

60    void handleErrorSAXParseException(SAXParseException JavaDoc saxpex);
61    /**
62     * @param saxpex the exception to be handled
63     */

64    void handleFatalSAXParseException(SAXParseException JavaDoc saxpex);
65
66     /**
67      * Method handleKilimException.
68      * @param ex :
69      */

70    void handleKilimException(KilimException ex);
71 }
72
Popular Tags