From 15aa565caf6d1f605648bb037ad7bc6e26a40389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 7 Apr 2025 11:38:42 +0200 Subject: [PATCH] Add custom exception classes for export errors Introduced `ExportRuntimeException` and `ExportLogicException` to better categorize exceptions in the export process. Updated `ExportGenerationException` to extend `ExportRuntimeException` for clearer hierarchy and improved maintainability. --- .../Export/Exception/ExportGenerationException.php | 2 +- .../Export/Exception/ExportLogicException.php | 14 ++++++++++++++ .../Export/Exception/ExportRuntimeException.php | 14 ++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/Bundle/ChillMainBundle/Export/Exception/ExportLogicException.php create mode 100644 src/Bundle/ChillMainBundle/Export/Exception/ExportRuntimeException.php diff --git a/src/Bundle/ChillMainBundle/Export/Exception/ExportGenerationException.php b/src/Bundle/ChillMainBundle/Export/Exception/ExportGenerationException.php index 0c06c4a7d..b8f12c6bf 100644 --- a/src/Bundle/ChillMainBundle/Export/Exception/ExportGenerationException.php +++ b/src/Bundle/ChillMainBundle/Export/Exception/ExportGenerationException.php @@ -11,4 +11,4 @@ declare(strict_types=1); namespace Chill\MainBundle\Export\Exception; -class ExportGenerationException extends \RuntimeException {} +class ExportGenerationException extends ExportRuntimeException {} diff --git a/src/Bundle/ChillMainBundle/Export/Exception/ExportLogicException.php b/src/Bundle/ChillMainBundle/Export/Exception/ExportLogicException.php new file mode 100644 index 000000000..e824df5b0 --- /dev/null +++ b/src/Bundle/ChillMainBundle/Export/Exception/ExportLogicException.php @@ -0,0 +1,14 @@ +