org.schmant.task.template.xml
Class DefaultErrorHandler

java.lang.Object
  extended by org.schmant.task.template.xml.DefaultErrorHandler
All Implemented Interfaces:
ErrorHandler

public class DefaultErrorHandler
extends Object
implements ErrorHandler

The default ErrorHandler for XML parsing.

Since:
0.5
Author:
Karl Gustafsson

Constructor Summary
DefaultErrorHandler()
           
 
Method Summary
 void error(SAXParseException e)
          Logs an error and rethrows the exception.
 void fatalError(SAXParseException e)
          Logs an error and rethrows the exception.
 void warning(SAXParseException e)
          Logs an warning message, but does not rethrow the exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorHandler

public DefaultErrorHandler()
Method Detail

fatalError

public void fatalError(SAXParseException e)
                throws SAXException
Logs an error and rethrows the exception.

Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException

error

public void error(SAXParseException e)
           throws SAXException
Logs an error and rethrows the exception.

Specified by:
error in interface ErrorHandler
Throws:
SAXException

warning

public void warning(SAXParseException e)
             throws SAXException
Logs an warning message, but does not rethrow the exception.

Specified by:
warning in interface ErrorHandler
Throws:
SAXException