com.vaadin.data.fieldgroup
Class FieldGroup.CommitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.vaadin.data.fieldgroup.FieldGroup.CommitException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
FieldGroup

public static class FieldGroup.CommitException
extends java.lang.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 Summary
FieldGroup.CommitException()
           
FieldGroup.CommitException(java.lang.String message)
           
FieldGroup.CommitException(java.lang.String message, FieldGroup fieldGroup, java.lang.Throwable cause)
           
FieldGroup.CommitException(java.lang.String message, java.lang.Throwable cause)
           
FieldGroup.CommitException(java.lang.Throwable cause)
           
 
Method Summary
 FieldGroup getFieldGroup()
          Returns the field group where the exception occurred
 java.util.Map<Field<?>,Validator.InvalidValueException> getInvalidFields()
          Returns a map containing the fields which failed validation and the exceptions the corresponding validators threw.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldGroup.CommitException

public FieldGroup.CommitException()

FieldGroup.CommitException

public FieldGroup.CommitException(java.lang.String message,
                                  FieldGroup fieldGroup,
                                  java.lang.Throwable cause)

FieldGroup.CommitException

public FieldGroup.CommitException(java.lang.String message,
                                  java.lang.Throwable cause)

FieldGroup.CommitException

public FieldGroup.CommitException(java.lang.String message)

FieldGroup.CommitException

public FieldGroup.CommitException(java.lang.Throwable cause)
Method Detail

getInvalidFields

public java.util.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


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.