Class ErrorReporterToListener

    • Constructor Detail

      • ErrorReporterToListener

        public ErrorReporterToListener​(ErrorListener listener)
        Create an error reporter that wraps a JAXP ErrorListener
        Parameters:
        listener - the wrapped ErrorListener. Must not be null.
    • Method Detail

      • getErrorListener

        public ErrorListener getErrorListener()
        Get the JAXP ErrorListener wrapped by this error reporter
        Returns:
        the wrapped ErrorListener
      • report

        public void report​(XmlProcessingError error)
        Receive notification of a error or warning
        Specified by:
        report in interface ErrorReporter
        Parameters:
        error - information about the error or warning