This commit is contained in:
Vladimir
2025-11-29 15:50:47 +07:00
parent 4593d56158
commit fcadb35360

View File

@@ -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("что-то пошло не так");