Package com.vaadin.flow.data.binder
Interface ErrorMessageProvider
- All Superinterfaces:
Function<ValueContext,
,String> Serializable
,SerializableFunction<ValueContext,
String>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface ErrorMessageProvider
extends SerializableFunction<ValueContext,String>
Provider interface for generating localizable error messages using
ValueContext
.- Since:
- 1.0.
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptionapply
(ValueContext context) Returns a generated error message for givenValueContext
.
-
Method Details
-
apply
Returns a generated error message for givenValueContext
.- Specified by:
apply
in interfaceFunction<ValueContext,
String> - Parameters:
context
- the value context- Returns:
- generated error message
-