com.sun.msv.driver.textui
Class ReportErrorHandler

java.lang.Object
  |
  +--com.sun.msv.driver.textui.ReportErrorHandler
All Implemented Interfaces:
ErrorHandler

public class ReportErrorHandler
extends Object
implements ErrorHandler

VerificationErrorHandler that reports all errors and warnings. SAX parse errors are also handled.

Author:
Kohsuke KAWAGUCHI

Field Summary
 boolean hadError
           
static String MSG_ERROR
           
static String MSG_FATAL
           
static String MSG_TOO_MANY_ERRORS
           
static String MSG_WARNING
           
 
Constructor Summary
ReportErrorHandler()
           
 
Method Summary
 void error(SAXParseException e)
           
 void fatalError(SAXParseException e)
           
 void warning(SAXParseException e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hadError

public boolean hadError

MSG_TOO_MANY_ERRORS

public static final String MSG_TOO_MANY_ERRORS

MSG_ERROR

public static final String MSG_ERROR

MSG_WARNING

public static final String MSG_WARNING

MSG_FATAL

public static final String MSG_FATAL
Constructor Detail

ReportErrorHandler

public ReportErrorHandler()
Method Detail

error

public void error(SAXParseException e)
           throws SAXException
Specified by:
error in interface ErrorHandler

fatalError

public void fatalError(SAXParseException e)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler

warning

public void warning(SAXParseException e)
Specified by:
warning in interface ErrorHandler