Class JsonValidatingException

  • All Implemented Interfaces:
    Serializable

    public class JsonValidatingException
    extends JsonParsingException
    JsonValidatingException indicates that some exception happened while validating a JSON document.
    Author:
    leadpony
    See Also:
    Serialized Form
    • Constructor Detail

      • JsonValidatingException

        public JsonValidatingException​(List<Problem> problems)
        Constructs a new runtime exception.
        Parameters:
        problems - the problems found while validating the JSON document.
    • Method Detail

      • getProblems

        public List<Problem> getProblems()
        Returns all problems found in the validation process.
        Returns:
        unmodifiable collection of problems, which never be null.
      • getMessage

        public String getMessage()
        Returns the detail message string of this exception.

        The message is composed of multiple lines and each line corresponds to a problem found in the validation process.

        Overrides:
        getMessage in class Throwable
        Returns:
        the detail message string of this exception instance.