org.forgerock.maven.plugins.utils
Class LoggingErrorHandler

java.lang.Object
  extended by org.forgerock.maven.plugins.utils.LoggingErrorHandler
All Implemented Interfaces:
ErrorHandler

public class LoggingErrorHandler
extends Object
implements ErrorHandler

A custom XML parser error handler that makes sure that warnings and errors are reported in the Maven output. In case the parser runs into an error or a fatal error, this handler will cause the plugin to fail (if failOnError is set to true).


Constructor Summary
LoggingErrorHandler(LinkTester linkTester)
           
 
Method Summary
 void error(SAXParseException saxpe)
           
 void fatalError(SAXParseException saxpe)
           
 void warning(SAXParseException saxpe)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingErrorHandler

public LoggingErrorHandler(LinkTester linkTester)
Method Detail

warning

public void warning(SAXParseException saxpe)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Throws:
SAXException

error

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

fatalError

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


Copyright © 2015. All rights reserved.