Class ModelValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.glassfish.jersey.server.model.ModelValidationException
- All Implemented Interfaces:
Serializable
Resource model validation exception.
Indicates the issues with the model.
- Author:
- Jakub Podlesak, Marek Potociar
- See Also:
-
Constructor Summary
ConstructorDescriptionModelValidationException
(String message, List<ResourceModelIssue> issues) Creates new resource model validation exception with the list of validation issues and the message. -
Method Summary
Modifier and TypeMethodDescriptionGet validation issues.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ModelValidationException
Creates new resource model validation exception with the list of validation issues and the message.- Parameters:
message
- message for the exception. The final message returned bygetMessage()
will contains themessage
and other information about exception.issues
- validation issues.
-
-
Method Details
-
getIssues
Get validation issues.- Returns:
- validation issues.
-
getMessage
- Overrides:
getMessage
in classThrowable
-