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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ResourceModelIssue> private static final long -
Constructor Summary
ConstructorsConstructorDescriptionModelValidationException(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 Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
issues
-
-
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 themessageand other information about exception.issues- validation issues.
-
-
Method Details
-
getIssues
-
getMessage
- Overrides:
getMessagein classThrowable
-