Class FieldErrorMapper
java.lang.Object
com.github.damianwajser.exceptions.handlers.FieldErrorMapper
public final class FieldErrorMapper extends Object
-
Field Summary
Fields Modifier and Type Field Description static StringI18N_KEYstatic StringTEMPLATE_FORMAT_INCORRECTstatic StringTEMPLATE_NOT_FOUND -
Method Summary
Modifier and Type Method Description static com.github.damianwajser.exceptions.model.ExceptionDetailconvert(org.springframework.validation.FieldError error)static com.github.damianwajser.exceptions.model.ExceptionDetailinternacionalizate(com.github.damianwajser.exceptions.model.ExceptionDetail detail, org.springframework.context.MessageSource messageSource, Locale locale)
-
Field Details
-
TEMPLATE_FORMAT_INCORRECT
- See Also:
- Constant Field Values
-
TEMPLATE_NOT_FOUND
- See Also:
- Constant Field Values
-
I18N_KEY
- See Also:
- Constant Field Values
-
-
Method Details
-
convert
public static com.github.damianwajser.exceptions.model.ExceptionDetail convert(org.springframework.validation.FieldError error) -
internacionalizate
public static com.github.damianwajser.exceptions.model.ExceptionDetail internacionalizate(com.github.damianwajser.exceptions.model.ExceptionDetail detail, org.springframework.context.MessageSource messageSource, Locale locale)
-