Class ExceptionDetailMapper
- java.lang.Object
-
- com.github.damianwajser.exceptions.handlers.ExceptionDetailMapper
-
public final class ExceptionDetailMapper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringI18N_KEYstatic StringTEMPLATE_FORMAT_INCORRECTstatic StringTEMPLATE_NOT_FOUND
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.github.damianwajser.exceptions.model.ExceptionDetailconvert(javax.validation.ConstraintViolation error)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 Detail
-
TEMPLATE_FORMAT_INCORRECT
public static final String TEMPLATE_FORMAT_INCORRECT
- See Also:
- Constant Field Values
-
TEMPLATE_NOT_FOUND
public static final String TEMPLATE_NOT_FOUND
- See Also:
- Constant Field Values
-
I18N_KEY
public static final String I18N_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
convert
public static com.github.damianwajser.exceptions.model.ExceptionDetail convert(javax.validation.ConstraintViolation error)
-
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)
-
-