org.forgerock.maven.plugins.utils
Class MyErrorHandler

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

public class MyErrorHandler
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).

Author:
Peter Major

Constructor Summary
MyErrorHandler(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

MyErrorHandler

public MyErrorHandler(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 © 2013. All Rights Reserved.