Package com.norconex.commons.lang.xml

# Class ErrorHandlerFailer

java.lang.Object
com.norconex.commons.lang.xml.ErrorHandlerFailer

All Implemented Interfaces:
  `ErrorHandler`

public class ErrorHandlerFailer extends Object implements ErrorHandler
Fails upon encountering first XML validation errors by throwing an `XmlValidationException`. as error.

Since:
  2.0.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ErrorHandlerFailer(Class<?> clazz)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `error(SAXParseException e)`
  `void`
  `fatalError(SAXParseException e)`
  `void`
  `warning(SAXParseException e)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ErrorHandlerFailer

    public ErrorHandlerFailer(Class<?> clazz)

- ## Method Details

  - ### warning

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

  - ### error

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

  - ### fatalError

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