01 /*
02 * GateSaxException.java
03 *
04 * Copyright (c) 1995-2010, The University of Sheffield. See the file
05 * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
06 *
07 * This file is part of GATE (see http://gate.ac.uk/), and is free
08 * software, licenced under the GNU Library General Public License,
09 * Version 2, June 1991 (in the distribution as file licence.html,
10 * and also available at http://gate.ac.uk/gate/licence.html).
11 *
12 * Cristian URSU, 23/OCT/2000
13 *
14 * $Id: GateSaxException.java 12006 2009-12-01 17:24:28Z thomas_heitz $
15 */
16
17 package gate.util;
18
19 /** An inherited class from SAX exception in the GATE packages. Can be used
20 * to catch any internal exception thrown by the GATE SAX libraries.
21 */
22 public class GateSaxException extends org.xml.sax.SAXException {
23 /** Debug flag */
24 private static final boolean DEBUG = false;
25
26 public GateSaxException(String aMessage, Exception anException) {
27 super(aMessage,anException);
28 }
29
30 public GateSaxException(String aMessage) {
31 super(aMessage);
32 }
33
34 public GateSaxException(Exception anException) {
35 super(anException.toString());
36 }
37 } // GateSaxException
|