Project

General

Profile

Download (962 Bytes) Statistics
| Branch: | Tag: | Revision:
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.commons.logging.Log;
12
import org.apache.commons.logging.LogFactory;
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 Log log = LogFactory.getLog(DefaultErrorHandler.class);
20
	
21
	public void error(SAXParseException exception) throws SAXException {
22
		log.error(exception);
23
	}
24

    
25
	public void fatalError(SAXParseException exception) throws SAXException {
26
		log.error(exception);
27
	}
28

    
29
	public void warning(SAXParseException exception) throws SAXException {
30
		log.warn(exception);
31
	}
32
}
(7-7/17)