Removing unused ExceptionHandler
This commit is contained in:
parent
58a74a6c80
commit
c07c35882f
|
@ -8,8 +8,6 @@ import org.springframework.web.bind.annotation.ExceptionHandler;
|
|||
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||
import org.springframework.web.bind.annotation.RestControllerAdvice;
|
||||
|
||||
import com.fasterxml.jackson.databind.exc.InvalidFormatException;
|
||||
|
||||
@RestControllerAdvice
|
||||
public class GlobalExceptionHandler {
|
||||
|
||||
|
@ -29,9 +27,4 @@ public class GlobalExceptionHandler {
|
|||
return ex.getMessage();
|
||||
}
|
||||
|
||||
@ExceptionHandler(InvalidFormatException.class)
|
||||
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
|
||||
public String handleInvalidFormatException(InvalidFormatException ex) {
|
||||
return ex.getOriginalMessage();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue