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