Class FieldGroup.FieldGroupInvalidValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.vaadin.featurepack.data.Validator.InvalidValueException
com.vaadin.featurepack.data.fieldgroup.FieldGroup.FieldGroupInvalidValueException
- All Implemented Interfaces:
Serializable
- Enclosing class:
FieldGroup
public static class FieldGroup.FieldGroupInvalidValueException
extends Validator.InvalidValueException
Exception which wraps InvalidValueExceptions from all invalid fields in a
FieldGroup
- Since:
- 7.4
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFieldGroupInvalidValueException(Map<Field<?>, Validator.InvalidValueException> invalidValueExceptions) Constructs a new exception with the specified validation exceptions. -
Method Summary
Modifier and TypeMethodDescriptionReturns a map containing fields which failed validation and the exceptions the corresponding validators threw.Methods inherited from class com.vaadin.featurepack.data.Validator.InvalidValueException
getCauses, getHtmlMessage, isInvisibleMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FieldGroupInvalidValueException
public FieldGroupInvalidValueException(Map<Field<?>, Validator.InvalidValueException> invalidValueExceptions) Constructs a new exception with the specified validation exceptions.- Parameters:
invalidValueExceptions- a property id to exception map
-
-
Method Details
-
getInvalidFields
Returns a map containing fields which failed validation and the exceptions the corresponding validators threw.- Returns:
- a map with all the invalid value exceptions
-