Class ErrorHandler

java.lang.Object
uk.co.real_logic.sbe.xml.ErrorHandler

public class ErrorHandler extends Object
Class to hold error handling state while parsing an XML message schema.
  • Constructor Details

  • Method Details

    • error

      public void error(String msg)
      Record a message signifying an error condition.
      Parameters:
      msg - signifying an error.
    • warning

      public void warning(String msg)
      Record a message signifying a warning condition.
      Parameters:
      msg - signifying a warning.
    • checkIfShouldExit

      public void checkIfShouldExit()
      Check if the parser should exit.
      Throws:
      IllegalStateException - if there are errors or warnings recorded.
    • errorCount

      public int errorCount()
      The count of errors encountered.
      Returns:
      the count of errors encountered.
    • warningCount

      public int warningCount()
      The count of warnings encountered.
      Returns:
      the count of warnings encountered.
    • toString

      public String toString()
      Overrides:
      toString in class Object