Package org.bardframework.commons.web
Class ExceptionControllerAdvice
- java.lang.Object
-
- org.bardframework.commons.web.ExceptionControllerAdvice
-
public abstract class ExceptionControllerAdvice extends Object
Created by Vahid Zafari on 1/14/17.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOGGERprotected org.springframework.context.MessageSourcemessageSource
-
Constructor Summary
Constructors Constructor Description ExceptionControllerAdvice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(Exception ex)voidhandle(UnsupportedOperationException ex)List<String>handle(org.springframework.web.bind.MethodArgumentNotValidException ex, Locale locale)handle exception occur in @Validated annotation in RequestMapping methods
-
-
-
Method Detail
-
handle
@ExceptionHandler(java.lang.Exception.class) @ResponseStatus(INTERNAL_SERVER_ERROR) public void handle(Exception ex)
-
handle
@ExceptionHandler(java.lang.UnsupportedOperationException.class) @ResponseStatus(FORBIDDEN) public void handle(UnsupportedOperationException ex)
-
handle
@ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class) @ResponseStatus(NOT_ACCEPTABLE) @ResponseBody public List<String> handle(org.springframework.web.bind.MethodArgumentNotValidException ex, Locale locale)
handle exception occur in @Validated annotation in RequestMapping methods
-
-