Class ErrorHandlerFactory.ErrorHandlerTracking

java.lang.Object
org.apache.jena.riot.system.ErrorHandlerFactory.ErrorHandlerTracking
All Implemented Interfaces:
ErrorHandler
Enclosing class:
ErrorHandlerFactory

public static class ErrorHandlerFactory.ErrorHandlerTracking extends Object implements ErrorHandler
An error handler that logs message for errors and warnings and throw exceptions on either
  • Constructor Details

    • ErrorHandlerTracking

      public ErrorHandlerTracking(org.slf4j.Logger log, boolean failOnError, boolean failOnWarning)
  • Method Details

    • warning

      public void warning(String message, long line, long col)
      report a warning
      Specified by:
      warning in interface ErrorHandler
    • error

      public void error(String message, long line, long col)
      report an error
      Specified by:
      error in interface ErrorHandler
    • fatal

      public void fatal(String message, long line, long col)
      Description copied from interface: ErrorHandler
      report a catastrophic error. Must not return.
      Specified by:
      fatal in interface ErrorHandler
    • getErrorCount

      public long getErrorCount()
    • getWarningCount

      public long getWarningCount()
    • hadErrors

      public boolean hadErrors()
    • hadWarnings

      public boolean hadWarnings()
    • hadIssues

      public boolean hadIssues()
    • logWarning

      public void logWarning(String message, long line, long col)
      report a warning
    • logError

      public void logError(String message, long line, long col)
      report an error
    • logFatal

      public void logFatal(String message, long line, long col)
      report a catastrophic error