Package com.isomorphic.util
 Class ErrorReport
- All Implemented Interfaces:
- Serializable,- Cloneable,- Map<String,- Object> 
Encapsulates a per-record set of validation errors.
 - See Also:
-  Constructor SummaryConstructors
-  Method SummaryModifier and TypeMethodDescriptionaddError(String fieldName, ErrorMessage error) Add a validation error for a field.Convenience method - creates an ErrorMessage from the passed params and calls addError(fieldName, error).Convenience method - creates an ErrorMessage from the passed params and calls addError(fieldName, error).Returns the list of validation errors (ErrorMessages) for a given field.
-  Constructor Details-  ErrorReportpublic ErrorReport()Constructs an empty ErrorReport
 
-  
-  Method Details-  addErrorConvenience method - creates an ErrorMessage from the passed params and calls addError(fieldName, error).- Parameters:
- fieldName- fieldName for which to add the error
- message- set on created ErrorMessage
 
-  addErrorConvenience method - creates an ErrorMessage from the passed params and calls addError(fieldName, error).- Parameters:
- fieldName- fieldName for which to add the error
- message- set on created ErrorMessage
- suggestedValue- set on created ErrorMessage
 
-  addErrorAdd a validation error for a field.- Parameters:
- fieldName- fieldName for which to add the error
- error- the error
 
-  getErrorsReturns the list of validation errors (ErrorMessages) for a given field.- Parameters:
- fieldName- name of the field for which to return validation errors
- Returns:
- List of ErrorMessage objects, one for each error
- See Also:
 
 
-