Package com.vaadin.v7.data.fieldgroup
Class FieldGroup.CommitException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.vaadin.v7.data.fieldgroup.FieldGroup.CommitException
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- FieldGroup
@Deprecated public static class FieldGroup.CommitException extends Exception
Deprecated.Exception thrown by a FieldGroup when the commit operation fails. Provides information about validation errors throughgetInvalidFields()
if the cause of the failure is that all bound fields did not pass validation- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommitException()
Deprecated.CommitException(String message)
Deprecated.CommitException(String message, FieldGroup fieldGroup, Throwable cause)
Deprecated.CommitException(String message, Throwable cause)
Deprecated.CommitException(Throwable cause)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FieldGroup
getFieldGroup()
Deprecated.Returns the field group where the exception occurred.Map<Field<?>,Validator.InvalidValueException>
getInvalidFields()
Deprecated.Returns 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 Detail
-
CommitException
public CommitException()
Deprecated.
-
CommitException
public CommitException(String message, FieldGroup fieldGroup, Throwable cause)
Deprecated.
-
CommitException
public CommitException(String message)
Deprecated.
-
CommitException
public CommitException(Throwable cause)
Deprecated.
-
-
Method Detail
-
getInvalidFields
public Map<Field<?>,Validator.InvalidValueException> getInvalidFields()
Deprecated.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()
Deprecated.Returns the field group where the exception occurred.- Returns:
- the field group
- Since:
- 7.4
-
-