move: exception move /domain
This commit is contained in:
parent
acafb78d87
commit
c689526021
@ -1,4 +1,4 @@
|
||||
package com.example.nto.exception;
|
||||
package com.example.nto.domain.exception;
|
||||
|
||||
public class CodeNotFoundException extends RuntimeException {
|
||||
// Выдаётся, когда код не найден. Нужна, чтобы возвращать клиенту код 401.
|
@ -1,4 +1,4 @@
|
||||
package com.example.nto.exception;
|
||||
package com.example.nto.domain.exception;
|
||||
|
||||
public class EmployeeNotFoundException extends RuntimeException {
|
||||
// Выдаётся, когда работник не найден. Нужна, чтобы возвращать клиенту код 401.
|
@ -1,4 +1,4 @@
|
||||
package com.example.nto.exception;
|
||||
package com.example.nto.domain.exception;
|
||||
|
||||
public class SomethingWentWrongException extends RuntimeException {
|
||||
// Выдаётся, при непредвиденной ошибке. Нужна, чтобы возвращать клиенту код 400.
|
@ -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;
|
Loading…
x
Reference in New Issue
Block a user