1 package fr.in2p3.jsaga.helpers;
2
3 import org.xml.sax.SAXException;
4 import org.xml.sax.SAXParseException;
5 import org.xml.sax.helpers.DefaultHandler;
6
7
8
9
10
11
12
13
14
15
16
17
18
19 public class XMLFileParserExceptionHandler extends DefaultHandler {
20 private SAXParseException m_exception;
21
22 public void error(SAXParseException exception) throws SAXException {
23 m_exception = exception;
24 }
25
26 public void fatalError(SAXParseException exception) throws SAXException {
27 m_exception = exception;
28 }
29
30 public void warning(SAXParseException exception) throws SAXException {
31
32 }
33
34 public SAXParseException getSAXParseException() {
35 return m_exception;
36 }
37 }