Class FieldGroup.CommitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.vaadin.featurepack.data.fieldgroup.FieldGroup.CommitException
- All Implemented Interfaces:
Serializable
- Enclosing class:
FieldGroup
Exception thrown by a FieldGroup when the commit operation fails.
Provides information about validation errors through
getInvalidFields() if the cause of the failure is that all bound
fields did not pass validation- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommitException(String message) CommitException(String message, FieldGroup fieldGroup, Throwable cause) CommitException(String message, Throwable cause) CommitException(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionReturns the field group where the exception occurredReturns a map containing the fields which failed validation and the exceptions the corresponding validators threw.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommitException
public CommitException() -
CommitException
-
CommitException
-
CommitException
-
CommitException
-
-
Method Details
-
getInvalidFields
Returns a map containing the fields which failed validation and the exceptions the corresponding validators threw.- Returns:
- a map with all the invalid value exceptions. Can be empty but not null
- Since:
- 7.4
-
getFieldGroup
Returns the field group where the exception occurred- Returns:
- the field group
- Since:
- 7.4
-