- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.json.JsonException
-
- javax.json.stream.JsonParsingException
-
- org.leadpony.justify.api.JsonValidatingException
-
- All Implemented Interfaces:
Serializable
public class JsonValidatingException extends JsonParsingException
JsonValidatingExceptionindicates that some exception happened while validating a JSON document.- Author:
- leadpony
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonValidatingException(List<Problem> problems)Constructs a new runtime exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Returns the detail message string of this exception.List<Problem>getProblems()Returns all problems found in the validation process.-
Methods inherited from class javax.json.stream.JsonParsingException
getLocation
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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:
getMessagein classThrowable- Returns:
- the detail message string of this exception instance.
-
-