diff --git a/src/Domain/Exceptions/NotFoundException.php b/src/Application/Exceptions/NotFoundException.php similarity index 66% rename from src/Domain/Exceptions/NotFoundException.php rename to src/Application/Exceptions/NotFoundException.php index 319ed00..d568502 100644 --- a/src/Domain/Exceptions/NotFoundException.php +++ b/src/Application/Exceptions/NotFoundException.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Domain\Exceptions; +namespace Application\Exceptions; -final class NotFoundException extends \DomainException +final class NotFoundException extends \RuntimeException { public static function forEntity(string $entity, string $id): self { diff --git a/src/Application/Usecase/Employees/Find/FindEmployee.php b/src/Application/Usecase/Employees/Find/FindEmployee.php index 82424bf..b3bb961 100644 --- a/src/Application/Usecase/Employees/Find/FindEmployee.php +++ b/src/Application/Usecase/Employees/Find/FindEmployee.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Application\Usecase\Employees\Find; -use Domain\Exceptions\NotFoundException; +use Application\Exceptions\NotFoundException; use Domain\Ports\Directories\EmployeeDirectory; use Shared\DDD\Usecase\Input as BaseInput; use Shared\DDD\Usecase\Usecase; diff --git a/src/Presentation/Api/V1/Exceptions/ApiExceptionRenderer.php b/src/Presentation/Api/V1/Exceptions/ApiExceptionRenderer.php index 402359b..e2c77ad 100644 --- a/src/Presentation/Api/V1/Exceptions/ApiExceptionRenderer.php +++ b/src/Presentation/Api/V1/Exceptions/ApiExceptionRenderer.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Presentation\Api\V1\Exceptions; -use Domain\Exceptions\NotFoundException; +use Application\Exceptions\NotFoundException; use Illuminate\Http\Exceptions\ThrottleRequestsException; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; diff --git a/src/Presentation/Web/Exceptions/WebExceptionRenderer.php b/src/Presentation/Web/Exceptions/WebExceptionRenderer.php index 7ca7912..6215c03 100644 --- a/src/Presentation/Web/Exceptions/WebExceptionRenderer.php +++ b/src/Presentation/Web/Exceptions/WebExceptionRenderer.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Presentation\Web\Exceptions; -use Domain\Exceptions\NotFoundException; +use Application\Exceptions\NotFoundException; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; use Throwable; diff --git a/tests/Integration/Presentation/Api/ApiExceptionDispatcherTest.php b/tests/Integration/Presentation/Api/ApiExceptionDispatcherTest.php index e2731b3..6e197f5 100644 --- a/tests/Integration/Presentation/Api/ApiExceptionDispatcherTest.php +++ b/tests/Integration/Presentation/Api/ApiExceptionDispatcherTest.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Tests\Integration\Presentation\Api; -use Domain\Exceptions\NotFoundException; +use Application\Exceptions\NotFoundException; use Illuminate\Http\Request; use Presentation\Api\Exceptions\ApiExceptionDispatcher; use Presentation\Api\V1\Exceptions\ApiExceptionRenderer as V1ApiExceptionRenderer; diff --git a/tests/Integration/Presentation/Api/V1/ApiExceptionRendererTest.php b/tests/Integration/Presentation/Api/V1/ApiExceptionRendererTest.php index 86ed8c4..75f8bcf 100644 --- a/tests/Integration/Presentation/Api/V1/ApiExceptionRendererTest.php +++ b/tests/Integration/Presentation/Api/V1/ApiExceptionRendererTest.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Tests\Integration\Presentation\Api\V1; -use Domain\Exceptions\NotFoundException; +use Application\Exceptions\NotFoundException; use Illuminate\Http\Exceptions\ThrottleRequestsException; use Illuminate\Http\Request; use Illuminate\Support\Facades\Config; diff --git a/tests/Integration/Presentation/Web/WebExceptionRendererTest.php b/tests/Integration/Presentation/Web/WebExceptionRendererTest.php index 71a49bf..e912c7b 100644 --- a/tests/Integration/Presentation/Web/WebExceptionRendererTest.php +++ b/tests/Integration/Presentation/Web/WebExceptionRendererTest.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Tests\Integration\Presentation\Web; -use Domain\Exceptions\NotFoundException; +use Application\Exceptions\NotFoundException; use Illuminate\Http\Request; use Presentation\Web\Exceptions\WebExceptionRenderer;