|
|
|
@ -6,6 +6,7 @@ import org.springframework.validation.FieldError;
|
|
|
|
|
import org.springframework.web.bind.MethodArgumentNotValidException;
|
|
|
|
|
import org.springframework.web.bind.annotation.ControllerAdvice;
|
|
|
|
|
import org.springframework.web.bind.annotation.ExceptionHandler;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import ru.ulstu.core.error.EntityIdIsNullException;
|
|
|
|
|
import ru.ulstu.core.model.ErrorConstants;
|
|
|
|
|
import ru.ulstu.core.model.response.Response;
|
|
|
|
@ -23,6 +24,7 @@ import ru.ulstu.user.error.UserResetKeyError;
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
|
@ControllerAdvice
|
|
|
|
|
public class AdviceController {
|
|
|
|
|
private final Logger log = LoggerFactory.getLogger(AdviceController.class);
|
|
|
|
|