results of the first day #1

Merged
Petr merged 12 commits from develop into master 2025-02-18 17:35:58 +00:00
4 changed files with 7 additions and 7 deletions
Showing only changes of commit c689526021 - Show all commits

View File

@ -1,4 +1,4 @@
package com.example.nto.exception;
package com.example.nto.domain.exception;
public class CodeNotFoundException extends RuntimeException {
// Выдаётся, когда код не найден. Нужна, чтобы возвращать клиенту код 401.

View File

@ -1,4 +1,4 @@
package com.example.nto.exception;
package com.example.nto.domain.exception;
public class EmployeeNotFoundException extends RuntimeException {
// Выдаётся, когда работник не найден. Нужна, чтобы возвращать клиенту код 401.

View File

@ -1,4 +1,4 @@
package com.example.nto.exception;
package com.example.nto.domain.exception;
public class SomethingWentWrongException extends RuntimeException {
// Выдаётся, при непредвиденной ошибке. Нужна, чтобы возвращать клиенту код 400.

View File

@ -1,8 +1,8 @@
package com.example.nto.exception.advice;
package com.example.nto.domain.exception.advice;
import com.example.nto.exception.CodeNotFoundException;
import com.example.nto.exception.EmployeeNotFoundException;
import com.example.nto.exception.SomethingWentWrongException;
import com.example.nto.domain.exception.CodeNotFoundException;
import com.example.nto.domain.exception.EmployeeNotFoundException;
import com.example.nto.domain.exception.SomethingWentWrongException;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;