forked from Olympic/NTO-2025-Backend-TeamTask
2
This commit is contained in:
@@ -27,7 +27,6 @@ public class GlobalExceptionHandler {
|
||||
return ResponseEntity.status(HttpStatus.CONFLICT).body(ex.getMessage());
|
||||
}
|
||||
|
||||
// Обработка ошибок парсинга JSON
|
||||
@ExceptionHandler(HttpMessageNotReadableException.class)
|
||||
public ResponseEntity<String> handleJsonParseError(HttpMessageNotReadableException ex) {
|
||||
return ResponseEntity.status(HttpStatus.BAD_REQUEST).body("что-то пошло не так");
|
||||
|
||||
Reference in New Issue
Block a user