01 /*
02 * LazyProgrammerException.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 * Hamish Cunningham, 14/Feb/00
13 *
14 * $Id: LazyProgrammerException.java 12006 2009-12-01 17:24:28Z thomas_heitz $
15 */
16
17 package gate.util;
18
19 /** What to throw in a method that hasn't been implemented yet.
20 * Yes, there are good reasons never to throw RuntimeExceptions
21 * and thereby sidestep Java's exception checking mechanism. But
22 * we're so lazy we don't care. And anyway, none of these are
23 * ever supposed to make it into released versions (who are we
24 * kidding?).
25 */
26 public class LazyProgrammerException extends RuntimeException {
27
28 /** Debug flag */
29 private static final boolean DEBUG = false;
30
31 /** In a fit of complete laziness we didn't even document this
32 * class properly.
33 */
34 public LazyProgrammerException() {
35 super(defaultMessage);
36 }
37
38 /** In a fit of complete laziness we didn't even document this
39 * class properly.
40 */
41 public LazyProgrammerException(String s) {
42 super(s + defaultMessage);
43 }
44
45 /** In a fit of complete laziness we didn't even document this
46 * class properly.
47 */
48 static String defaultMessage =
49 " It was Valentin's fault. I never touched it.";
50
51 } // LazyProgrammerException
|