# Class XSErrorHandler

java.lang.Object
com.io7m.xstructural.vanilla.internal.XSErrorHandler

All Implemented Interfaces:
  `ErrorHandler`

public final class XSErrorHandler extends Object implements ErrorHandler
An error handler that logs messages and tracks the failure state.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `XSErrorHandler(org.slf4j.Logger inLogger)`
  An error handler.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `error(SAXParseException exception)`
  `void`
  `fatalError(SAXParseException exception)`
  `boolean`
  `isFailed()`
  `void`
  `warning(SAXParseException exception)`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### XSErrorHandler

    public XSErrorHandler(org.slf4j.Logger inLogger)
    An error handler.
    Parameters:
      `inLogger` - The target logger

- ## Method Details

  - ### isFailed

    public boolean isFailed()
    Returns:
      `true` if an error has occurred

  - ### warning

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

  - ### error

    public void error(SAXParseException exception)
    Specified by:
      `error` in interface `ErrorHandler`

  - ### fatalError

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