com.ptc.windchill.upgrade.util
Class SimpleSaxErrorHandler
java.lang.Object
com.ptc.windchill.upgrade.util.SimpleSaxErrorHandler
- All Implemented Interfaces:
- ErrorHandler
- public class SimpleSaxErrorHandler
- extends Object
- implements ErrorHandler
Simple error handler that throws WTSaxException on error of fatal error and prints warnings and messages.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSaxErrorHandler
public SimpleSaxErrorHandler()
error
public void error(SAXParseException exception)
throws WTSAXException
- Specified by:
error
in interface ErrorHandler
- Throws:
WTSAXException
fatalError
public void fatalError(SAXParseException exception)
throws WTSAXException
- Specified by:
fatalError
in interface ErrorHandler
- Throws:
WTSAXException
warning
public void warning(SAXParseException exception)
- Specified by:
warning
in interface ErrorHandler
printMessage
protected void printMessage(String a_message)
display
private void display(String type,
SAXParseException exception)