| 1 |
<?php |
| 2 |
|
| 3 |
namespace Templately\Modules\FullSiteImport\Exception; |
| 4 |
|
| 5 |
/** |
| 6 |
* @deprecated Use {@see FatalErrorException}. |
| 7 |
* |
| 8 |
* Kept as the BASE of the renamed class rather than a subclass of it, which looks |
| 9 |
* backwards until you consider what a rename has to preserve: `catch` blocks |
| 10 |
* outside this repo (ai-builder consumes this module) still name the old class, |
| 11 |
* and a subclass would mean they silently stop catching anything — every new |
| 12 |
* throw would sail past a handler that used to stop it. |
| 13 |
* |
| 14 |
* With the old name as the base, `catch ( NonRetirableErrorException $e )` still |
| 15 |
* catches every throw, and new code catching `FatalErrorException` is unaffected |
| 16 |
* because nothing throws the old class any more. |
| 17 |
* |
| 18 |
* Delete this once ai-builder has migrated; then `FatalErrorException` extends |
| 19 |
* `ImporterException` directly. |
| 20 |
*/ |
| 21 |
class NonRetirableErrorException extends ImporterException { |
| 22 |
} |
| 23 |
|