Merge branch 'release/5.45.0'
[cdmlib.git] / cdmlib-io / src / main / java / eu / etaxonomy / cdm / io / jaxb / DefaultErrorHandler.java
1 /**
2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9 package eu.etaxonomy.cdm.io.jaxb;
10
11 import org.apache.logging.log4j.LogManager;
12 import org.apache.logging.log4j.Logger;
13 import org.xml.sax.ErrorHandler;
14 import org.xml.sax.SAXException;
15 import org.xml.sax.SAXParseException;
16
17 public class DefaultErrorHandler implements ErrorHandler {
18
19 private static Logger logger = LogManager.getLogger();
20
21 @Override
22 public void error(SAXParseException exception) throws SAXException {
23 logger.error(exception);
24 }
25
26 @Override
27 public void fatalError(SAXParseException exception) throws SAXException {
28 logger.error(exception);
29 }
30
31 @Override
32 public void warning(SAXParseException exception) throws SAXException {
33 logger.warn(exception);
34 }
35 }