Class ProblemScope

  • All Implemented Interfaces:
    ProblemHandler

    public class ProblemScope
    extends java.lang.Object
    implements ProblemHandler
    Tracks if any errors happen within a scope.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void error​(java.lang.String message)  
      boolean errored()
      Return true if there were any errors reported.
      void errorf​(java.lang.String fmt, java.lang.Object... args)  
      void warn​(java.lang.String message)  
      void warnf​(java.lang.String fmt, java.lang.Object... args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • error

        public void error​(java.lang.String message)
        Specified by:
        error in interface ProblemHandler
      • errorf

        public void errorf​(java.lang.String fmt,
                           java.lang.Object... args)
        Specified by:
        errorf in interface ProblemHandler
      • warn

        public void warn​(java.lang.String message)
        Specified by:
        warn in interface ProblemHandler
      • warnf

        public void warnf​(java.lang.String fmt,
                          java.lang.Object... args)
        Specified by:
        warnf in interface ProblemHandler
      • errored

        public boolean errored()
        Description copied from interface: ProblemHandler
        Return true if there were any errors reported.
        Specified by:
        errored in interface ProblemHandler