rename class according to the entity

This commit is contained in:
Lucas Silva
2023-02-22 00:31:50 -03:00
committed by GitHub
parent 95f50cd7d2
commit 3eca31b190

View File

@@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
@RestControllerAdvice
public class ProductControllerAdvice {
public class PriceControllerAdvice {
@ExceptionHandler(PriceNotFoundException.class)
public ResponseEntity<Object> handlePriceNotFoundException(PriceNotFoundException exception) {