Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.nuxeo.ecm.webengine.forms.validation.ValidationException
- All Implemented Interfaces:
Serializable
- Author:
- Bogdan Stefanescu
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionValidationException
(String message) ValidationException
(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionaddInvalidField
(String key) addInvalidField
(String key, String message) addRequiredField
(String key) addRequiredField
(String key, String message) getForm()
boolean
boolean
boolean
boolean
void
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
IS_REQUIRED_MSG
- See Also:
-
IS_INVALID_MSG
- See Also:
-
invalidFields
-
requiredFields
-
form
-
-
Constructor Details
-
ValidationException
-
ValidationException
-
ValidationException
public ValidationException()
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getXmlMessage
-
addRequiredField
-
addRequiredField
-
addInvalidField
-
addInvalidField
-
hasFieldErrors
public boolean hasFieldErrors() -
hasInvalidFields
public boolean hasInvalidFields() -
hasRequiredFields
public boolean hasRequiredFields() -
getRequiredFields
-
getInvalidFields
-
hasErrors
-
getError
-
setForm
-
getForm
-