1   /*
2    *  InvalidOffsetException.java
3    *
4    *  Copyright (c) 1998-2005, 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   *  Valentin Tablan, Jan/2000
12   *
13   *  $Id: InvalidOffsetException.java,v 1.8 2005/01/11 13:51:37 ian Exp $
14   */
15  
16  package gate.util;
17  
18  /** Used to signal an attempt to create a node with an invalid offset.
19    * An invalid offset is a negative value, or
20    * an offset bigger than the document size, or a start greater than an end. 
21    */
22  public class InvalidOffsetException extends GateException {
23  
24    /** Debug flag */
25    private static final boolean DEBUG = false;
26  
27    public InvalidOffsetException() {
28    }
29  
30    public InvalidOffsetException(String s) {
31      super(s);
32    }
33  
34  } // InvalidOffsetException
35