org.springframework.binding.form
Interface BindingErrorMessageProvider

All Known Implementing Classes:
DefaultBindingErrorMessageProvider

public interface BindingErrorMessageProvider

A class that can generate ValidationMessages for exception that occur during a form model's binding process.

Author:
Oliver Hutchison
See Also:
DefaultBindingErrorMessageProvider

Method Summary
 ValidationMessage getErrorMessage(FormModel formModel, String propertyName, Object valueBeingSet, Exception e)
          Translates the provided exception details into a ValidationMessage that will be used to provide feedback to the end user.
 

Method Detail

getErrorMessage

ValidationMessage getErrorMessage(FormModel formModel,
                                  String propertyName,
                                  Object valueBeingSet,
                                  Exception e)
Translates the provided exception details into a ValidationMessage that will be used to provide feedback to the end user. Generally these exceptions results from type conversion problems.

Parameters:
formModel - the formModel
propertyName - the propertyName
valueBeingSet - the value which triggered the exception


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.