2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.io
.jaxb
;
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
;
17 public class DefaultErrorHandler
implements ErrorHandler
{
19 private static Logger logger
= LogManager
.getLogger();
22 public void error(SAXParseException exception
) throws SAXException
{
23 logger
.error(exception
);
27 public void fatalError(SAXParseException exception
) throws SAXException
{
28 logger
.error(exception
);
32 public void warning(SAXParseException exception
) throws SAXException
{
33 logger
.warn(exception
);