Class ParserException

    • Constructor Detail

      • ParserException

        public ParserException()
        Constructs a new ParserException with no problems, a null error message and a null cause.
      • ParserException

        public ParserException​(String message)
        Constructs a new ParserException with no problems, the given error message and a null cause.
        Parameters:
        message - the error message of this exception
      • ParserException

        public ParserException​(Throwable cause)
        Constructs a new ParserException with no problems, a null error message and the given cause.
        Parameters:
        cause - the cause of this exception
      • ParserException

        public ParserException​(String message,
                               Throwable cause)
        Constructs a new ParserException with no problems, the given error message and the given cause.
        Parameters:
        message - the error message of this exception
        cause - the cause of this exception
      • ParserException

        public ParserException​(String message,
                               List<Problem> problems)
        Constructs a new ParserException with the given problems, the given error message and a null cause.

        Note that the problems list instance is not copied.

        Parameters:
        message - the error message of this exception
        problems - the problems of this exception
      • ParserException

        public ParserException​(List<Problem> problems)
        Constructs a new ParserException with the given problems, a error message constructed from the problems list and a null cause.

        Note that the problems list instance is not copied.

        Parameters:
        problems - the problems of this exception
    • Method Detail

      • getProblems

        public List<Problem> getProblems()
        Get the problems occurred during a parsing process. The returned list is maybe empty but never null.
        Returns:
        a unmodifiable list of the problems occurred during a parsing process
        See Also:
        Collections.unmodifiableList(List)