refactor(discovery): enhance exception handling and logging context in FileProcessor

- Add `DiscoveryErrorCode` and `FileSystemErrorCode` to improve error classification in `DiscoveryException`.
- Integrate `LogContext` into `FileProcessor` warnings for enriched logging details.
- Simplify `Environment` variable handling by removing redundant condition checks.
This commit is contained in:
2025-11-04 00:22:10 +01:00
parent 56f09b5001
commit 30d15d1b20
3 changed files with 6 additions and 3 deletions

View File

@@ -4,6 +4,8 @@ declare(strict_types=1);
namespace App\Framework\Discovery\Exceptions;
use App\Framework\Exception\Core\DiscoveryErrorCode;
use App\Framework\Exception\Core\FileSystemErrorCode;
use App\Framework\Exception\ErrorCode;
use App\Framework\Exception\ExceptionContext;
use App\Framework\Exception\FrameworkException;