1 package cz
.cvut
.promod
.services
.projectService
.localIO
;
3 import org
.apache
.log4j
.Logger
;
4 import org
.xml
.sax
.SAXParseException
;
5 import org
.xml
.sax
.SAXException
;
6 import org
.xml
.sax
.ErrorHandler
;
7 import cz
.cvut
.promod
.services
.pluginLoaderService
.errorHandling
.PluginLoaderErrorHandler
;
10 * ProMod, master thesis project
11 * User: Petr Zverina, petr.zverina@gmail.com
12 * Date: 2:13:43, 9.2.2010
14 public class ProjectFileXmlErrorHandler
implements ErrorHandler
{
16 private static final Logger LOG
= Logger
.getLogger(PluginLoaderErrorHandler
.class);
19 public void warning(SAXParseException exception
) throws SAXException
{
20 LOG
.warn("Project loader XSD validating and parsing warning.", exception
);
24 public void error(SAXParseException exception
) throws SAXException
{
25 LOG
.warn("Project loader XSD validating and parsing error.", exception
);
26 throw new SAXException(exception
);
30 public void fatalError(SAXParseException exception
) throws SAXException
{
31 LOG
.warn("Project loader XSD validating and parsing fatal error.", exception
);
32 throw new SAXException(exception
);