marf.Classification.NeuralNetwork
Class NeuralNetwork.NeuralNetworkErrorHandler

java.lang.Object
  extended by marf.Classification.NeuralNetwork.NeuralNetwork.NeuralNetworkErrorHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler
Enclosing class:
NeuralNetwork

private static class NeuralNetwork.NeuralNetworkErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler

Error handler to report errors and warnings. TODO: iclement: this may need revision.

Author:
Ian Clement

Field Summary
private  java.io.PrintWriter oOut
          Error handler output goes here.
 
Constructor Summary
NeuralNetwork.NeuralNetworkErrorHandler(java.io.PrintWriter poOut)
          Constructs our error handler with the given writer.
 
Method Summary
 void error(org.xml.sax.SAXParseException poParseException)
          Issues a SAX error.
 void fatalError(org.xml.sax.SAXParseException poParseException)
          Issues a SAX fatal error.
private  java.lang.String getParseExceptionInfo(org.xml.sax.SAXParseException poParseException)
          Returns a string describing parse exception details.
 void warning(org.xml.sax.SAXParseException poParseException)
          Issues a SAX warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oOut

private java.io.PrintWriter oOut
Error handler output goes here.

Constructor Detail

NeuralNetwork.NeuralNetworkErrorHandler

NeuralNetwork.NeuralNetworkErrorHandler(java.io.PrintWriter poOut)
Constructs our error handler with the given writer.

Parameters:
poOut - writer to write errors to
Method Detail

getParseExceptionInfo

private java.lang.String getParseExceptionInfo(org.xml.sax.SAXParseException poParseException)
Returns a string describing parse exception details.

Parameters:
poParseException - exception to get info from
Returns:
string representation of the info

warning

public void warning(org.xml.sax.SAXParseException poParseException)
             throws org.xml.sax.SAXException
Issues a SAX warning.

Specified by:
warning in interface org.xml.sax.ErrorHandler
Parameters:
poParseException - the parse exception to warn about
Throws:
org.xml.sax.SAXException

error

public void error(org.xml.sax.SAXParseException poParseException)
           throws org.xml.sax.SAXException
Issues a SAX error.

Specified by:
error in interface org.xml.sax.ErrorHandler
Parameters:
poParseException - the source of the error information
Throws:
org.xml.sax.SAXException - the error based on the parse exception

fatalError

public void fatalError(org.xml.sax.SAXParseException poParseException)
                throws org.xml.sax.SAXException
Issues a SAX fatal error.

Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Parameters:
poParseException - the source of the error information
Throws:
org.xml.sax.SAXException - the error based on the parse exception


SourceForge Logo