New Jide License
[indepmod/experimental.git] / IndependentModeler / src / cz / cvut / promod / services / projectService / localIO / ProjectFileXmlErrorHandler.java
blob30824119e340aeef8760c1d37a87488d908890a1
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;
9 /**
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);
18 /** {@inheritDoc} */
19 public void warning(SAXParseException exception) throws SAXException {
20 LOG.warn("Project loader XSD validating and parsing warning.", exception);
23 /** {@inheritDoc} */
24 public void error(SAXParseException exception) throws SAXException {
25 LOG.warn("Project loader XSD validating and parsing error.", exception);
26 throw new SAXException(exception);
29 /** {@inheritDoc} */
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);