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