1   /*
2    *  GateSaxException.java
3    *
4    *  Copyright (c) 1998-2001, The University of Sheffield.
5    *
6    *  This file is part of GATE (see http://gate.ac.uk/), and is free
7    *  software, licenced under the GNU Library General Public License,
8    *  Version 2, June 1991 (in the distribution as file licence.html,
9    *  and also available at http://gate.ac.uk/gate/licence.html).
10   *
11   *  Cristian URSU, 23/OCT/2000
12   *
13   *  $Id: GateSaxException.java,v 1.2 2000/11/08 16:35:09 hamish Exp $
14   */
15  
16  package gate.util;
17  
18  import org.xml.sax.*;
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
38