Package org.bardframework.commons.web
Interface BaseExceptionControllerAdvice
public interface BaseExceptionControllerAdvice
Created by Vahid Zafari on 1/14/17.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.MessageSourcedefault voiddefault voidhandle exception occur in @Validated annotation in RequestMapping methods
-
Field Details
-
log
static final org.slf4j.Logger log
-
-
Method Details
-
handle
@ExceptionHandler(java.lang.Exception.class) @ResponseStatus(INTERNAL_SERVER_ERROR) default void handle(Exception ex) -
handle
@ExceptionHandler(java.lang.UnsupportedOperationException.class) @ResponseStatus(FORBIDDEN) default void handle(UnsupportedOperationException ex) -
handle
@ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class) @ResponseStatus(NOT_ACCEPTABLE) @ResponseBody default List<String> handle(org.springframework.web.bind.MethodArgumentNotValidException ex, Locale locale) handle exception occur in @Validated annotation in RequestMapping methods -
getMessageSource
org.springframework.context.MessageSource getMessageSource()
-