Revision: 20060 http://sourceforge.net/p/gate/code/20060 Author: markagreenwood Date: 2017-02-02 10:57:23 +0000 (Thu, 02 Feb 2017) Log Message: ----------- removed some exceptions left over from goodness knows what
Removed Paths: ------------- gate/branches/sawdust2/gate-core/src/main/java/gate/util/LaxErrorHandler.java gate/branches/sawdust2/gate-core/src/main/java/gate/util/TemplateLaxErrorHandler.java Deleted: gate/branches/sawdust2/gate-core/src/main/java/gate/util/LaxErrorHandler.java =================================================================== --- gate/branches/sawdust2/gate-core/src/main/java/gate/util/LaxErrorHandler.java 2017-02-02 10:57:04 UTC (rev 20059) +++ gate/branches/sawdust2/gate-core/src/main/java/gate/util/LaxErrorHandler.java 2017-02-02 10:57:23 UTC (rev 20060) @@ -1,48 +0,0 @@ -/* - * LaxErrorHandler.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). - * - * Cristian URSU, 7/July/2000 - * - * $Id$ - */ -package gate.util; - -/** - * LaxErrorHandler - */ -import org.xml.sax.*; - -public abstract class LaxErrorHandler implements ErrorHandler { - - /** - * LaxErrorHandler constructor comment. - */ - public LaxErrorHandler() {super();} - - /** - * error method comment. - */ - @Override - public abstract void error(SAXParseException ex) throws SAXException; - - /** - * fatalError method comment. - */ - @Override - public abstract void fatalError(SAXParseException ex) throws SAXException ; - - /** - * warning method comment. - */ - @Override - public abstract void warning(SAXParseException ex) throws SAXException ; - -} // class LaxErrorHandler Deleted: gate/branches/sawdust2/gate-core/src/main/java/gate/util/TemplateLaxErrorHandler.java =================================================================== --- gate/branches/sawdust2/gate-core/src/main/java/gate/util/TemplateLaxErrorHandler.java 2017-02-02 10:57:04 UTC (rev 20059) +++ gate/branches/sawdust2/gate-core/src/main/java/gate/util/TemplateLaxErrorHandler.java 2017-02-02 10:57:23 UTC (rev 20060) @@ -1,72 +0,0 @@ -/* - * TemplateLaxErrorHandler.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). - * - * Cristian URSU, 07/July/2000 - * - * $Id$ - */ - -// modify this according with your package -package gate.util; - -/** - * TemplateLaxErrorHandler - */ -import java.io.File; - -import org.xml.sax.SAXException; -import org.xml.sax.SAXParseException; - -// this import is for the abstract class LaxErrorHandler located in gate.util - - -// modify the class name the way you want -public class TemplateLaxErrorHandler extends LaxErrorHandler { - - /** - * TemplateLaxErrorHandler constructor comment. - */ - public TemplateLaxErrorHandler() {super();} - - /** - * error method comment. - */ - @Override - public void error(SAXParseException ex) throws SAXException{ - // do something with the error - File fInput = new File (ex.getSystemId()); - Err.println("e: " + fInput.getPath() + ": line " + - ex.getLineNumber() + ": " + ex); - } // error - - /** - * fatalError method comment. - */ - @Override - public void fatalError(SAXParseException ex) throws SAXException{ - // do something with the fatalError - File fInput = new File(ex.getSystemId()); - Err.println("E: " + fInput.getName() + ": line " + - ex.getLineNumber() + ": " + ex); - } // fatalError - - /** - * warning method comment. - */ - @Override - public void warning(SAXParseException ex) throws SAXException { - // do something with the warning. - File fInput = new File(ex.getSystemId()); - Err.println("w: " + fInput.getName() + ": line " + - ex.getLineNumber() + ": " + ex); - } // warning - -} // TemplateLaxErrorHandler 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