com.ptc.windchill.upgrade.util
Class SimpleSaxErrorHandler

java.lang.Object
  extended bycom.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.


Constructor Summary
SimpleSaxErrorHandler()
           
 
Method Summary
private  void display(String type, SAXParseException exception)
           
 void error(SAXParseException exception)
           
 void fatalError(SAXParseException exception)
           
protected  void printMessage(String a_message)
           
 void warning(SAXParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSaxErrorHandler

public SimpleSaxErrorHandler()
Method Detail

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)