|
NoSuchClosureTypeException |
|
1 /* 2 * NoSuchClosureTypeException.java 3 * 4 * Copyright (c) 2002, 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, June1991. 9 * 10 * A copy of this licence is included in the distribution in the file 11 * licence.html, and is also available at http://gate.ac.uk/gate/licence.html. 12 * 13 * borislav popov 16/04/2002 14 * 15 * $Id: NoSuchClosureTypeException.java,v 1.2 2002/06/28 15:17:52 nasso Exp $ 16 */ 17 package gate.creole.ontology; 18 19 import gate.util.GateException; 20 /**NoSuchClosureTypeException 21 * <br> 22 * thrown whenever a closure type mismatch ocurrs 23 * <br> 24 */ 25 public class NoSuchClosureTypeException extends GateException { 26 27 /** the type of the closure*/ 28 private byte type; 29 30 /** the core message */ 31 private final static String MSG = "No Such Closure Type Exception : Type = "; 32 33 /**Constructs a new blank exception */ 34 public NoSuchClosureTypeException() { 35 } 36 37 /** 38 * Constructs the exception given the type of the closure. 39 * @param aType the type of the closure 40 */ 41 public NoSuchClosureTypeException(byte aType) { 42 super(MSG + aType); 43 type = aType; 44 } 45 46 /** 47 * Gets the type of the closure. 48 * @return the type of the closure 49 */ 50 public byte getType() { 51 return type; 52 } 53 54 } // NoSuchClosureTypeException
|
NoSuchClosureTypeException |
|