move: exception move /domain

This commit is contained in:
Petr Rudichev 2025-02-18 20:00:51 +03:00
parent acafb78d87
commit c689526021
4 changed files with 7 additions and 7 deletions

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;