00001 package instruction.exceptions; 00002 00003 import instruction.semanticObjects.Word; 00004 00005 00006 public class WordNetException extends Exception { 00007 00008 private static final long serialVersionUID = -1828674915260265308L; 00009 00010 private Word w = null; 00011 00012 public WordNetException(String msg) { 00013 super(msg); 00014 } 00015 00016 public WordNetException(Word w) { 00017 this.w = w; 00018 } 00019 00020 public Word getWord() { 00021 return w; 00022 } 00023 00024 }