Interface BaseExceptionControllerAdvice


public interface BaseExceptionControllerAdvice
Created by Vahid Zafari on 1/14/17.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.context.MessageSource
     
    default void
     
    default void
     
    default List<String>
    handle(org.springframework.web.bind.MethodArgumentNotValidException ex, Locale locale)
    handle 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()