Class ExceptionHandlerConfig

java.lang.Object
hu.rts.mike.example.dev.crm.rest.config.ExceptionHandlerConfig

@RestControllerAdvice public class ExceptionHandlerConfig extends Object
  • Constructor Details

    • ExceptionHandlerConfig

      public ExceptionHandlerConfig()
  • Method Details

    • handleSqlException

      @ExceptionHandler(org.postgresql.util.PSQLException.class) protected org.springframework.http.ResponseEntity<ErrorDto> handleSqlException(RuntimeException ex, org.springframework.web.context.request.WebRequest request)
    • handleErrorCodeException

      @ExceptionHandler(ErrorCodeException.class) protected org.springframework.http.ResponseEntity<ErrorDto> handleErrorCodeException(ErrorCodeException ex, org.springframework.web.context.request.WebRequest request)