public interface MessageCodeFormatter
DefaultMessageCodesResolver
,
DefaultMessageCodesResolver.Format
Modifier and Type | Method and Description |
---|---|
String |
format(String errorCode,
String objectName,
String field)
Build and return a message code consisting of the given fields, usually delimited
by
DefaultMessageCodesResolver.CODE_SEPARATOR . |
String format(String errorCode, @Nullable String objectName, @Nullable String field)
DefaultMessageCodesResolver.CODE_SEPARATOR
.errorCode
- e.g.: "typeMismatch"objectName
- e.g.: "user"field
- e.g. "age"DefaultMessageCodesResolver.Format