Revision: 20054
          http://sourceforge.net/p/gate/code/20054
Author:   markagreenwood
Date:     2017-02-02 06:44:12 +0000 (Thu, 02 Feb 2017)
Log Message:
-----------
removed LuckyException by replacing all uses with GateRuntimeException -- no 
point having both and the latter has a much more semantically useful name

Modified Paths:
--------------
    gate/branches/sawdust2/gate-core/src/main/java/gate/Gate.java
    
gate/branches/sawdust2/gate-core/src/main/java/gate/creole/CreoleRegisterImpl.java
    
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/FeatureMapEditorDialog.java
    gate/branches/sawdust2/gate-core/src/main/java/gate/gui/MainFrame.java
    
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/ResourceParametersEditor.java
    
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/annedit/SearchAndAnnotatePanel.java
    
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/annedit/SearchExpressionsAction.java
    
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/docview/AnnotationSetsView.java
    
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/docview/OntologyClassView.java
    
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/docview/OntologyInstanceView.java
    
gate/branches/sawdust2/gate-core/src/main/java/gate/util/ant/packager/GappModel.java
    gate/branches/sawdust2/notes.txt
    
gate/branches/sawdust2/plugins/ANNIE/src/main/java/com/ontotext/gate/gazetteer/HashGazetteer.java
    
gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/creole/gazetteer/GazetteerList.java
    
gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/creole/tokeniser/SimpleTokeniser.java
    
gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/jape/parser/ParseCpsl.jj
    
gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/corpora/export/GATEJsonExporter.java
    
gate/branches/sawdust2/plugins/Gazetteer_LKB/src/com/ontotext/kim/gate/KimGazetteer.java
    gate/branches/sawdust2/plugins/Lang_French/tokeniser/postprocess.jape
    
gate/branches/sawdust2/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/InflectionalGazetteer.java
    
gate/branches/sawdust2/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/RussGazetteer.java
    
gate/branches/sawdust2/plugins/Lang_Russian/src/com/ontotext/russie/morph/POSTagger.java
    
gate/branches/sawdust2/plugins/Machine_Learning/src/gate/creole/ml/MachineLearningPR.java
    
gate/branches/sawdust2/plugins/Schema_Annotation_Editor/src/main/java/gate/gui/annedit/SchemaAnnotationEditor.java
    
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/chunk-annots.jape
    
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/chunk-feature.jape
    
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/entity-annots.jape
    
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/entity-feature.jape
    
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/resources/jape/exponents.jape
    
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/resources/jape/numbers.jape
    
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/resources/jape/sequence.jape

Removed Paths:
-------------
    gate/branches/sawdust2/gate-core/src/main/java/gate/util/LuckyException.java

Modified: gate/branches/sawdust2/gate-core/src/main/java/gate/Gate.java
===================================================================
--- gate/branches/sawdust2/gate-core/src/main/java/gate/Gate.java       
2017-02-02 06:09:08 UTC (rev 20053)
+++ gate/branches/sawdust2/gate-core/src/main/java/gate/Gate.java       
2017-02-02 06:44:12 UTC (rev 20054)
@@ -27,7 +27,6 @@
 import gate.util.GateClassLoader;
 import gate.util.GateException;
 import gate.util.GateRuntimeException;
-import gate.util.LuckyException;
 import gate.util.OptionsMap;
 import gate.util.Strings;
 
@@ -857,7 +856,7 @@
           Thread.sleep(200);
         }
         catch(InterruptedException ie) {
-          throw new LuckyException(ie.toString());
+          throw new GateRuntimeException(ie.toString());
         }
       }
       currentExecutable = executable;

Modified: 
gate/branches/sawdust2/gate-core/src/main/java/gate/creole/CreoleRegisterImpl.java
===================================================================
--- 
gate/branches/sawdust2/gate-core/src/main/java/gate/creole/CreoleRegisterImpl.java
  2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/gate-core/src/main/java/gate/creole/CreoleRegisterImpl.java
  2017-02-02 06:44:12 UTC (rev 20054)
@@ -33,7 +33,6 @@
 import gate.util.GateClassLoader;
 import gate.util.GateException;
 import gate.util.GateRuntimeException;
-import gate.util.LuckyException;
 import gate.util.Out;
 
 import java.io.IOException;
@@ -720,7 +719,7 @@
           }
         }
       } catch(ClassNotFoundException cnfe) {
-        throw new LuckyException(
+        throw new GateRuntimeException(
             "A type registered in the creole register does not exist in the 
VM!");
       }
 

Modified: 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/FeatureMapEditorDialog.java
===================================================================
--- 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/FeatureMapEditorDialog.java
 2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/FeatureMapEditorDialog.java
 2017-02-02 06:44:12 UTC (rev 20054)
@@ -70,8 +70,8 @@
     }
     catch(ResourceInstantiationException rie) {
       // can't happen, but needs to be caught to satisfy the compiler
-      throw new LuckyException("FeaturesSchemaEditor.init() threw "
-              + "ResourceInstantiationException!");
+      throw new GateRuntimeException("FeaturesSchemaEditor.init() threw "
+              + "ResourceInstantiationException!", rie);
     }
     fmView.setTarget(tempFMHolder);
     // make sure the window is a sensible size

Modified: gate/branches/sawdust2/gate-core/src/main/java/gate/gui/MainFrame.java
===================================================================
--- gate/branches/sawdust2/gate-core/src/main/java/gate/gui/MainFrame.java      
2017-02-02 06:09:08 UTC (rev 20053)
+++ gate/branches/sawdust2/gate-core/src/main/java/gate/gui/MainFrame.java      
2017-02-02 06:44:12 UTC (rev 20054)
@@ -191,7 +191,6 @@
 import gate.util.GateClassLoader;
 import gate.util.GateException;
 import gate.util.GateRuntimeException;
-import gate.util.LuckyException;
 import gate.util.NameBearer;
 import gate.util.OptionsMap;
 import gate.util.Out;
@@ -2067,7 +2066,7 @@
             }
             break;
           default:
-            throw new LuckyException("A phanthom state of things!");
+            throw new GateRuntimeException("A phanthom state of things!");
         }
       }
       if(nameBuilder.length() > 0) name = nameBuilder.toString();

Modified: 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/ResourceParametersEditor.java
===================================================================
--- 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/ResourceParametersEditor.java
       2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/ResourceParametersEditor.java
       2017-02-02 06:44:12 UTC (rev 20054)
@@ -31,7 +31,7 @@
 import gate.util.Err;
 import gate.util.ExtensionFileFilter;
 import gate.util.GateException;
-import gate.util.LuckyException;
+import gate.util.GateRuntimeException;
 import gate.util.NameBearer;
 
 import java.awt.Component;
@@ -964,7 +964,7 @@
             return combo;
           }
           catch(Exception ex) {
-            throw new LuckyException("Error calling \"values\" method of an "
+            throw new GateRuntimeException("Error calling \"values\" method of 
an "
                     + "enum type", ex);
           }
         }

Modified: 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/annedit/SearchAndAnnotatePanel.java
===================================================================
--- 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/annedit/SearchAndAnnotatePanel.java
 2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/annedit/SearchAndAnnotatePanel.java
 2017-02-02 06:44:12 UTC (rev 20054)
@@ -653,7 +653,7 @@
       }
       catch(InvalidOffsetException e) {
         //the offsets here should always be valid.
-        throw new LuckyException(e);
+        throw new GateRuntimeException(e);
       }
     }
   }
@@ -719,7 +719,7 @@
         }
         catch(InvalidOffsetException e) {
           //the offsets here should always be valid.
-          throw new LuckyException(e);
+          throw new GateRuntimeException(e);
         }
     }
   }

Modified: 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/annedit/SearchExpressionsAction.java
===================================================================
--- 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/annedit/SearchExpressionsAction.java
        2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/annedit/SearchExpressionsAction.java
        2017-02-02 06:44:12 UTC (rev 20054)
@@ -14,7 +14,7 @@
 
 package gate.gui.annedit;
 
-import gate.util.LuckyException;
+import gate.util.GateRuntimeException;
 
 import javax.swing.*;
 import javax.swing.text.BadLocationException;
@@ -380,7 +380,7 @@
     }
     } catch (BadLocationException e) {
       // should never happend
-      throw new LuckyException(e);
+      throw new GateRuntimeException(e);
     }
     textField.requestFocus();
   }

Modified: 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/docview/AnnotationSetsView.java
===================================================================
--- 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/docview/AnnotationSetsView.java
     2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/docview/AnnotationSetsView.java
     2017-02-02 06:44:12 UTC (rev 20054)
@@ -1623,7 +1623,6 @@
       catch(BadLocationException e1) {
         //this should not happen, as the text location comes from the text view
         //if it does. we'll just ignore it.
-//        throw new LuckyException(e1);
       }finally{
         mouseMovementTimer.restart();
       }

Modified: 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/docview/OntologyClassView.java
===================================================================
--- 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/docview/OntologyClassView.java
      2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/docview/OntologyClassView.java
      2017-02-02 06:44:12 UTC (rev 20054)
@@ -32,7 +32,7 @@
 import gate.gui.annedit.AnnotationData;
 import gate.gui.annedit.AnnotationDataImpl;
 import gate.gui.ontology.OntologyItemComparator;
-import gate.util.LuckyException;
+import gate.util.GateRuntimeException;
 import gate.util.OptionsMap;
 
 import java.awt.BorderLayout;
@@ -761,7 +761,7 @@
         }
       }
       catch(BadLocationException ble) {
-        throw new LuckyException(ble);
+        throw new GateRuntimeException(ble);
       }finally{
         mouseMovementTimer.restart();
       }

Modified: 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/docview/OntologyInstanceView.java
===================================================================
--- 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/docview/OntologyInstanceView.java
   2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/gate-core/src/main/java/gate/gui/docview/OntologyInstanceView.java
   2017-02-02 06:44:12 UTC (rev 20054)
@@ -23,7 +23,7 @@
 import gate.swing.XJTable;
 import gate.creole.ontology.*;
 import gate.util.InvalidOffsetException;
-import gate.util.LuckyException;
+import gate.util.GateRuntimeException;
 import gate.util.Out;
 import gate.util.Strings;
 
@@ -598,7 +598,7 @@
       // create a new annotation from the text selected
       set.add((long) start, (long) end, ANNOTATION_TYPE, features);
     } catch(InvalidOffsetException e) {
-      throw new LuckyException(e);
+      throw new GateRuntimeException(e);
     }
     classView.setClassHighlighted(selectedClass, false);
     classView.setClassHighlighted(selectedClass, true);

Deleted: 
gate/branches/sawdust2/gate-core/src/main/java/gate/util/LuckyException.java
===================================================================
--- 
gate/branches/sawdust2/gate-core/src/main/java/gate/util/LuckyException.java    
    2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/gate-core/src/main/java/gate/util/LuckyException.java    
    2017-02-02 06:44:12 UTC (rev 20054)
@@ -1,61 +0,0 @@
-/*
- *  LuckyException.java
- *
- *  Copyright (c) 1995-2012, The University of Sheffield. See the file
- *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
- *
- *  This file is part of GATE (see http://gate.ac.uk/), and is free
- *  software, licenced under the GNU Library General Public License,
- *  Version 2, June 1991 (in the distribution as file licence.html,
- *  and also available at http://gate.ac.uk/gate/licence.html).
- *
- *  Valentin Tablan 06/2000
- *
- *  $Id$
- */
-package gate.util;
-/**This exception is intended to be used in places where there definitely
-  *shouldn't be any exceptions thrown but the API requires us to catch some,
-  *eg: <code>
-  * try{
-  *   if( a != null){
-  *     a.doSomething();
-  *   }
-  * }catch(NullPointerException npe){
-  *   throw new LuckyException("I found a null pointer!");
-  * }
-  *</code>
-  *Of course the system will never require you to catch NullPOinterException as
-  *it derives from RuntimeException, but I couldn't come with a better example.
-  */
-public class LuckyException extends RuntimeException {
-
-  private static final long serialVersionUID = -8051339390451934567L;
-
-  /** Default constructor, creates a new execption with the default message */
-  public LuckyException() {
-    super(defaultMessage);
-  }
-
-  /** Creates a new exception with the provided message prepended to the 
default
-    * one on a separate line.
-    * @param message the uses message
-    */
-  public LuckyException(String message) {
-    super(message + "\n" + defaultMessage);
-  }
-
-  public LuckyException(String message, Throwable cause) {
-    super(message + "\n" + defaultMessage, cause);
-  }
-
-  public LuckyException(Throwable cause) {
-    super(defaultMessage, cause);
-  }
-
-  /**The default message carried by this type of exceptions*/
-  static String defaultMessage =
-    "Congratulations, you found the ONLY bug in GATE!";
-
-}// end class LuckyException
-

Modified: 
gate/branches/sawdust2/gate-core/src/main/java/gate/util/ant/packager/GappModel.java
===================================================================
--- 
gate/branches/sawdust2/gate-core/src/main/java/gate/util/ant/packager/GappModel.java
        2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/gate-core/src/main/java/gate/util/ant/packager/GappModel.java
        2017-02-02 06:44:12 UTC (rev 20054)
@@ -2,7 +2,6 @@
 
 import gate.util.Files;
 import gate.util.GateRuntimeException;
-import gate.util.LuckyException;
 import gate.util.persistence.PersistenceManager;
 
 import java.io.BufferedOutputStream;
@@ -336,7 +335,7 @@
       }
     }
     catch(JDOMException e) {
-      throw new LuckyException(
+      throw new GateRuntimeException(
               "Error applying XPath expression to remove duplicate plugins", 
e);
     }
   }

Modified: gate/branches/sawdust2/notes.txt
===================================================================
--- gate/branches/sawdust2/notes.txt    2017-02-02 06:09:08 UTC (rev 20053)
+++ gate/branches/sawdust2/notes.txt    2017-02-02 06:44:12 UTC (rev 20054)
@@ -32,12 +32,6 @@
 
 things to remove
 ================
-gate.gui.HelpFrame
-can't display the user guide properly but need to unwire from options dialog
-
-gate.swing.XJEditorPane
-only used by the HelpFrame so can go
-
 gate.swing.VerticalTextIcon
 gate.swing.WaitDialog
 
@@ -45,7 +39,6 @@
 gate.util.LanguageAnalyserDocumentProcessor
 gate.util.LaxErrorHandler
 gate.util.TemplateLaxErrorHandler
-gate.util.LuckyException -- replace with RuntimeException
 gate.util.ObjectPool
 gate.util.ObjectWriter
 gate.util.OrderByRestriction

Modified: 
gate/branches/sawdust2/plugins/ANNIE/src/main/java/com/ontotext/gate/gazetteer/HashGazetteer.java
===================================================================
--- 
gate/branches/sawdust2/plugins/ANNIE/src/main/java/com/ontotext/gate/gazetteer/HashGazetteer.java
   2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/ANNIE/src/main/java/com/ontotext/gate/gazetteer/HashGazetteer.java
   2017-02-02 06:44:12 UTC (rev 20054)
@@ -21,7 +21,7 @@
 import gate.creole.metadata.HiddenCreoleParameter;
 import gate.creole.metadata.Sharable;
 import gate.util.InvalidOffsetException;
-import gate.util.LuckyException;
+import gate.util.GateRuntimeException;
 
 import java.io.IOException;
 import java.util.ArrayList;
@@ -269,7 +269,7 @@
           annotationSet.add(Long.valueOf(i), Long.valueOf(documentPosition), 
"Lookup",
               featuremap);
         } catch(InvalidOffsetException invalidoffsetexception) {
-          throw new LuckyException(invalidoffsetexception.toString());
+          throw new GateRuntimeException(invalidoffsetexception.toString());
         }
       }
     }

Modified: 
gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/creole/gazetteer/GazetteerList.java
===================================================================
--- 
gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/creole/gazetteer/GazetteerList.java
 2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/creole/gazetteer/GazetteerList.java
 2017-02-02 06:44:12 UTC (rev 20054)
@@ -517,7 +517,7 @@
           listReader.close();
         } catch(IOException x) {
           /** should never be thrown */
-          throw new gate.util.LuckyException("IOException :" + x.getMessage());
+          throw new gate.util.GateRuntimeException("IOException :" + 
x.getMessage());
         }
 
         isModified = !tempEntries.equals(entries);

Modified: 
gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/creole/tokeniser/SimpleTokeniser.java
===================================================================
--- 
gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/creole/tokeniser/SimpleTokeniser.java
       2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/creole/tokeniser/SimpleTokeniser.java
       2017-02-02 06:44:12 UTC (rev 20054)
@@ -51,7 +51,7 @@
 import gate.util.Err;
 import gate.util.GateRuntimeException;
 import gate.util.InvalidOffsetException;
-import gate.util.LuckyException;
+import gate.util.GateRuntimeException;
 
 /** Implementation of a Unicode rule based tokeniser.
  * The tokeniser gets its rules from a file an {@link java.io.InputStream
@@ -866,7 +866,7 @@
     try{
       characterClassFields = Class.forName("java.lang.Character").getFields();
     }catch(ClassNotFoundException cnfe){
-      throw new LuckyException("Could not find the java.lang.Character 
class!");
+      throw new GateRuntimeException("Could not find the java.lang.Character 
class!");
     }
 
     Collection<Field> staticFields = new LinkedList<Field>();
@@ -902,7 +902,7 @@
         }
       }
     } catch(Exception e) {
-      throw new LuckyException(e.toString());
+      throw new GateRuntimeException(e.toString());
     }
     
     typeIds = Collections.unmodifiableMap(tempTypeIds);

Modified: 
gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/jape/parser/ParseCpsl.jj
===================================================================
--- 
gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/jape/parser/ParseCpsl.jj
    2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/jape/parser/ParseCpsl.jj
    2017-02-02 06:44:12 UTC (rev 20054)
@@ -254,7 +254,7 @@
       blockBuffer.append("          );" + nl);
       blockBuffer.append("        }" + nl);
       blockBuffer.append("        catch(gate.util.InvalidOffsetException ioe) 
{" + nl);
-      blockBuffer.append("          throw new 
gate.util.LuckyException(\"Invalid offset exception generated \" +" + nl);
+      blockBuffer.append("          throw new 
gate.util.GateRuntimeException(\"Invalid offset exception generated \" +" + nl);
       blockBuffer.append("               \"from offsets taken from same 
document!\");" + nl);
       blockBuffer.append("        }" + nl);
       blockBuffer.append("      }" + nl);

Modified: 
gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/corpora/export/GATEJsonExporter.java
===================================================================
--- 
gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/corpora/export/GATEJsonExporter.java
       2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Format_Twitter/src/main/java/gate/corpora/export/GATEJsonExporter.java
       2017-02-02 06:44:12 UTC (rev 20054)
@@ -29,7 +29,7 @@
 import gate.creole.metadata.Optional;
 import gate.creole.metadata.RunTime;
 import gate.util.InvalidOffsetException;
-import gate.util.LuckyException;
+import gate.util.GateRuntimeException;
 
 import java.io.IOException;
 import java.io.OutputStream;
@@ -219,7 +219,7 @@
       }
     } catch(InvalidOffsetException e) {
       // should never happen, as all offsets come from the document itself
-      throw new LuckyException("Invalid offset found within document", e);
+      throw new GateRuntimeException("Invalid offset found within document", 
e);
     }
   }
 }

Modified: 
gate/branches/sawdust2/plugins/Gazetteer_LKB/src/com/ontotext/kim/gate/KimGazetteer.java
===================================================================
--- 
gate/branches/sawdust2/plugins/Gazetteer_LKB/src/com/ontotext/kim/gate/KimGazetteer.java
    2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Gazetteer_LKB/src/com/ontotext/kim/gate/KimGazetteer.java
    2017-02-02 06:44:12 UTC (rev 20054)
@@ -8,7 +8,7 @@
 import gate.creole.ResourceInstantiationException;
 import gate.util.Files;
 import gate.util.InvalidOffsetException;
-import gate.util.LuckyException;
+import gate.util.GateRuntimeException;
 
 import java.io.File;
 import java.net.MalformedURLException;
@@ -53,7 +53,7 @@
                                                KIMConstants.LOOKUP, fm);
                        }
                        catch (InvalidOffsetException ioe) {
-                               throw new LuckyException(ioe.toString());
+                               throw new GateRuntimeException(ioe.toString());
                        }
 
                        ++annotatedEntities;

Modified: gate/branches/sawdust2/plugins/Lang_French/tokeniser/postprocess.jape
===================================================================
--- gate/branches/sawdust2/plugins/Lang_French/tokeniser/postprocess.jape       
2017-02-02 06:09:08 UTC (rev 20053)
+++ gate/branches/sawdust2/plugins/Lang_French/tokeniser/postprocess.jape       
2017-02-02 06:44:12 UTC (rev 20054)
@@ -87,7 +87,7 @@
       outputAS.add(offset+startIndex, endOffset, "Token", features); // <-- 
MODIF HERE
     }
   } catch (InvalidOffsetException e) {
-    throw new LuckyException(e);
+    throw new GateRuntimeException(e);
   }
   outputAS.remove(annotation);
 }

Modified: 
gate/branches/sawdust2/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/InflectionalGazetteer.java
===================================================================
--- 
gate/branches/sawdust2/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/InflectionalGazetteer.java
    2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/InflectionalGazetteer.java
    2017-02-02 06:44:12 UTC (rev 20054)
@@ -31,7 +31,7 @@
 import gate.creole.metadata.RunTime;
 import gate.creole.metadata.Sharable;
 import gate.util.InvalidOffsetException;
-import gate.util.LuckyException;
+import gate.util.GateRuntimeException;
 import gate.util.profile.Profiler;
 
 import java.io.BufferedReader;
@@ -468,7 +468,7 @@
               annotationSet.add(new Long(matchedRegionStart), new Long(
                 matchedRegionEnd), TYPE_LOOKUP, fm);
             } catch(InvalidOffsetException ioe) {
-              throw new LuckyException(ioe.toString());
+              throw new GateRuntimeException(ioe.toString());
             } // catchx
           }// while(lemmaIter.hasNext())
         } // generate MSD for the phraseso far

Modified: 
gate/branches/sawdust2/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/RussGazetteer.java
===================================================================
--- 
gate/branches/sawdust2/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/RussGazetteer.java
    2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/RussGazetteer.java
    2017-02-02 06:44:12 UTC (rev 20054)
@@ -45,7 +45,7 @@
 import gate.creole.metadata.RunTime;
 import gate.creole.metadata.Sharable;
 import gate.util.InvalidOffsetException;
-import gate.util.LuckyException;
+import gate.util.GateRuntimeException;
 
 import java.io.FileNotFoundException;
 import java.io.IOException;
@@ -494,7 +494,7 @@
                   annotationSet.add(new Long(matchedRegionStart), new Long(
                     matchedRegionEnd), LOOKUP_ANNOTATION_TYPE, fm);
                 } catch(InvalidOffsetException ioe) {
-                  throw new LuckyException(ioe.toString());
+                  throw new GateRuntimeException(ioe.toString());
                 } // catchx
 
               }// while(lookupIter.hasNext())

Modified: 
gate/branches/sawdust2/plugins/Lang_Russian/src/com/ontotext/russie/morph/POSTagger.java
===================================================================
--- 
gate/branches/sawdust2/plugins/Lang_Russian/src/com/ontotext/russie/morph/POSTagger.java
    2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Lang_Russian/src/com/ontotext/russie/morph/POSTagger.java
    2017-02-02 06:44:12 UTC (rev 20054)
@@ -36,7 +36,7 @@
 import gate.creole.metadata.Sharable;
 import gate.util.GateRuntimeException;
 import gate.util.InvalidOffsetException;
-import gate.util.LuckyException;
+import gate.util.GateRuntimeException;
 import gate.util.profile.Profiler;
 
 import java.io.BufferedReader;
@@ -482,7 +482,7 @@
                   annotationSet.add(new Long(matchedRegionStart), new Long(
                     matchedRegionEnd), TYPE_MSD, fm);
                 } catch(InvalidOffsetException ioe) {
-                  throw new LuckyException(ioe.toString());
+                  throw new GateRuntimeException(ioe.toString());
                 } // catchx
               } // while types
             }// while(lemmaIter.hasNext())

Modified: 
gate/branches/sawdust2/plugins/Machine_Learning/src/gate/creole/ml/MachineLearningPR.java
===================================================================
--- 
gate/branches/sawdust2/plugins/Machine_Learning/src/gate/creole/ml/MachineLearningPR.java
   2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Machine_Learning/src/gate/creole/ml/MachineLearningPR.java
   2017-02-02 06:44:12 UTC (rev 20054)
@@ -406,7 +406,7 @@
         return getValue(attribute, actualPosition, attributesMap);
       }
       //we should never get here
-      throw new LuckyException(
+      throw new GateRuntimeException(
         "Attribute position is neither 0, nor negative nor positive!");
     }
 

Modified: 
gate/branches/sawdust2/plugins/Schema_Annotation_Editor/src/main/java/gate/gui/annedit/SchemaAnnotationEditor.java
===================================================================
--- 
gate/branches/sawdust2/plugins/Schema_Annotation_Editor/src/main/java/gate/gui/annedit/SchemaAnnotationEditor.java
  2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Schema_Annotation_Editor/src/main/java/gate/gui/annedit/SchemaAnnotationEditor.java
  2017-02-02 06:44:12 UTC (rev 20054)
@@ -89,7 +89,7 @@
 import gate.util.GateException;
 import gate.util.GateRuntimeException;
 import gate.util.InvalidOffsetException;
-import gate.util.LuckyException;
+import gate.util.GateRuntimeException;
 
 /**
  * An annotation editor that enforces the annotation schemas currently loaded 
in
@@ -703,7 +703,7 @@
             owner.annotationChanged(newAnn, annSet, oldAnn.getType());
           } catch(InvalidOffsetException ioe) {
             // this should never happen
-            throw new LuckyException(ioe);
+            throw new GateRuntimeException(ioe);
           }
         }
       }

Modified: 
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/chunk-annots.jape
===================================================================
--- 
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/chunk-annots.jape
      2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/chunk-annots.jape
      2017-02-02 06:44:12 UTC (rev 20054)
@@ -21,6 +21,6 @@
        
outputAS.add(chunk.firstNode().getOffset(),chunk.lastNode().getOffset(),type,features);
 }
 catch (Exception e) {
-       throw new LuckyException(e);
+       throw new GateRuntimeException(e);
 }
 }

Modified: 
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/chunk-feature.jape
===================================================================
--- 
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/chunk-feature.jape
     2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/chunk-feature.jape
     2017-02-02 06:44:12 UTC (rev 20054)
@@ -22,6 +22,6 @@
        
outputAS.add(chunk.firstNode().getOffset(),chunk.lastNode().getOffset(),"Chunk",features);
 }
 catch (Exception e) {
-       throw new LuckyException(e);
+       throw new GateRuntimeException(e);
 }
 }

Modified: 
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/entity-annots.jape
===================================================================
--- 
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/entity-annots.jape
     2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/entity-annots.jape
     2017-02-02 06:44:12 UTC (rev 20054)
@@ -21,6 +21,6 @@
        
outputAS.add(entity.firstNode().getOffset(),entity.lastNode().getOffset(),type,features);
 }
 catch (Exception e) {
-       throw new LuckyException(e);
+       throw new GateRuntimeException(e);
 }
 }

Modified: 
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/entity-feature.jape
===================================================================
--- 
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/entity-feature.jape
    2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Tagger_Framework/resources/tagger-independent/entity-feature.jape
    2017-02-02 06:44:12 UTC (rev 20054)
@@ -22,6 +22,6 @@
        
outputAS.add(entity.firstNode().getOffset(),entity.lastNode().getOffset(),"Entity",features);
 }
 catch (Exception e) {
-       throw new LuckyException(e);
+       throw new GateRuntimeException(e);
 }
 }

Modified: 
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/resources/jape/exponents.jape
===================================================================
--- 
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/resources/jape/exponents.jape
      2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/resources/jape/exponents.jape
      2017-02-02 06:44:12 UTC (rev 20054)
@@ -67,7 +67,7 @@
   try {
     outputAS.add(start, end, NUMBER_ANNOTATION_NAME, features);
   } catch(InvalidOffsetException ioe){
-    throw new LuckyException(ioe);
+    throw new GateRuntimeException(ioe);
   }
 }
 
@@ -102,6 +102,6 @@
   try {
     outputAS.add(start, end, NUMBER_ANNOTATION_NAME, features);
   } catch(InvalidOffsetException ioe){
-    throw new LuckyException(ioe);
+    throw new GateRuntimeException(ioe);
   }
 }
\ No newline at end of file

Modified: 
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/resources/jape/numbers.jape
===================================================================
--- 
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/resources/jape/numbers.jape
        2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/resources/jape/numbers.jape
        2017-02-02 06:44:12 UTC (rev 20054)
@@ -35,7 +35,7 @@
   try {
     outputAS.add(num.getStartNode().getOffset()+1, 
num.getEndNode().getOffset(), NUMBER_ANNOTATION_NAME, features);
   } catch(InvalidOffsetException ioe){
-    throw new LuckyException(ioe);
+    throw new GateRuntimeException(ioe);
   }
 
   inputAS.remove(num);
@@ -60,7 +60,7 @@
   try {
     outputAS.add(n1.getStartNode().getOffset(), n2.getEndNode().getOffset(), 
NUMBER_ANNOTATION_NAME, features);
   } catch(InvalidOffsetException ioe){
-    throw new LuckyException(ioe);
+    throw new GateRuntimeException(ioe);
   }
 
   inputAS.remove(n1);
@@ -85,7 +85,7 @@
   try {
     outputAS.add(n1.getStartNode().getOffset(), n2.getEndNode().getOffset(), 
NUMBER_ANNOTATION_NAME, features);
   } catch(InvalidOffsetException ioe){
-    throw new LuckyException(ioe);
+    throw new GateRuntimeException(ioe);
   }
 
   inputAS.remove(n1);

Modified: 
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/resources/jape/sequence.jape
===================================================================
--- 
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/resources/jape/sequence.jape
       2017-02-02 06:09:08 UTC (rev 20053)
+++ 
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/resources/jape/sequence.jape
       2017-02-02 06:44:12 UTC (rev 20054)
@@ -42,7 +42,7 @@
   try {
     outputAS.add(numbers.firstNode().getOffset(), 
numbers.lastNode().getOffset(), NUMBER_ANNOTATION_NAME, features);
   } catch(InvalidOffsetException ioe){
-    throw new LuckyException(ioe);
+    throw new GateRuntimeException(ioe);
   }
   
   inputAS.removeAll(numbers);
@@ -72,7 +72,7 @@
   try {
     outputAS.add(numbers.firstNode().getOffset(), 
numbers.lastNode().getOffset(), NUMBER_ANNOTATION_NAME, features);
   } catch(InvalidOffsetException ioe){
-    throw new LuckyException(ioe);
+    throw new GateRuntimeException(ioe);
   }
   
   inputAS.removeAll(numbers);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GATE-cvs mailing list
GATE-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to