| LazyProgrammerException |

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

| LazyProgrammerException |