com.vaadin.data.fieldgroup.

Class FieldGroup.CommitException

  • All Implemented Interfaces:

    Serializable

    Enclosing class:

    FieldGroup

    public static class FieldGroup.CommitException
    extends Exception

    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:

    Serialized Form

    • Constructor Detail

      • CommitException

        public CommitException()
      • CommitException

        public CommitException​(String message,
                               Throwable cause)
      • CommitException

        public CommitException​(String message)
      • CommitException

        public CommitException​(Throwable cause)
    • Method Detail

      • getInvalidFields

        public Map<Field<?>,​Validator.InvalidValueException> 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

        public FieldGroup getFieldGroup()

        Returns the field group where the exception occurred

        Returns:

        the field group

        Since:

        7.4