Class Problem


  • public class Problem
    extends Object
    A problem that was encountered during parsing.
    • Field Detail

      • PROBLEM_BY_BEGIN_POSITION

        public static Comparator<Problem> PROBLEM_BY_BEGIN_POSITION
        Sorts problems on position.
    • Method Detail

      • getMessage

        public String getMessage()
        Returns:
        the message that was passed into the constructor.
      • getVerboseMessage

        public String getVerboseMessage()
        Returns:
        the message plus location information.
      • getLocation

        public Optional<TokenRange> getLocation()
        Returns:
        the location that was passed into the constructor.
      • getCause

        public Optional<Throwable> getCause()
        Returns:
        the cause that was passed into the constructor.