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.
This commit is contained in:
Julien Fastré 2025-04-07 11:38:42 +02:00
parent 566b72ec9e
commit 15aa565caf
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
3 changed files with 29 additions and 1 deletions

View File

@ -11,4 +11,4 @@ declare(strict_types=1);
namespace Chill\MainBundle\Export\Exception;
class ExportGenerationException extends \RuntimeException {}
class ExportGenerationException extends ExportRuntimeException {}

View File

@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Export\Exception;
class ExportLogicException extends \LogicException {}

View File

@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Export\Exception;
class ExportRuntimeException extends \RuntimeException {}