|
17 | 17 | use Psr\EventDispatcher\EventDispatcherInterface; |
18 | 18 | use Symfony\Component\Console\Helper\ProgressBar; |
19 | 19 | use Symfony\Component\Console\Output\OutputInterface; |
| 20 | +use Symfony\Component\Mailer\Exception\TransportExceptionInterface; |
20 | 21 | use Throwable; |
21 | 22 | use TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationExtensionNotConfiguredException; |
22 | 23 | use TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationPathDoesNotExistException; |
23 | 24 | use TYPO3\CMS\Core\Exception\SiteNotFoundException; |
24 | 25 | use TYPO3\CMS\Core\Utility\GeneralUtility; |
25 | 26 | use TYPO3\CMS\Extbase\Configuration\Exception\InvalidConfigurationTypeException; |
26 | | -use TYPO3\CMS\Extbase\Object\Exception; |
27 | 27 | use TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException; |
28 | 28 | use TYPO3\CMS\Extbase\Persistence\Exception\InvalidQueryException; |
29 | 29 | use TYPO3\CMS\Extbase\Persistence\Exception\UnknownObjectException; |
30 | | -use TYPO3\CMS\Extbase\SignalSlot\Exception\InvalidSlotException; |
31 | | -use TYPO3\CMS\Extbase\SignalSlot\Exception\InvalidSlotReturnException; |
32 | 30 |
|
33 | 31 | /** |
34 | 32 | * Class ProgressQueue |
@@ -78,14 +76,11 @@ public function __construct(OutputInterface $output) |
78 | 76 | * @param int $newsletterIdentifier |
79 | 77 | * @return int Number of progressed queued mails |
80 | 78 | * @throws ArgumentMissingException |
81 | | - * @throws Exception |
82 | 79 | * @throws ExtensionConfigurationExtensionNotConfiguredException |
83 | 80 | * @throws ExtensionConfigurationPathDoesNotExistException |
84 | 81 | * @throws IllegalObjectTypeException |
85 | 82 | * @throws InvalidConfigurationTypeException |
86 | 83 | * @throws InvalidQueryException |
87 | | - * @throws InvalidSlotException |
88 | | - * @throws InvalidSlotReturnException |
89 | 84 | * @throws MisconfigurationException |
90 | 85 | * @throws SiteNotFoundException |
91 | 86 | * @throws UnknownObjectException |
@@ -122,15 +117,13 @@ public function progress(int $limit, int $newsletterIdentifier): int |
122 | 117 | * @param Queue $queue |
123 | 118 | * @return void |
124 | 119 | * @throws ArgumentMissingException |
125 | | - * @throws Exception |
126 | 120 | * @throws ExtensionConfigurationExtensionNotConfiguredException |
127 | 121 | * @throws ExtensionConfigurationPathDoesNotExistException |
128 | 122 | * @throws IllegalObjectTypeException |
129 | 123 | * @throws InvalidConfigurationTypeException |
130 | | - * @throws InvalidSlotException |
131 | | - * @throws InvalidSlotReturnException |
132 | 124 | * @throws MisconfigurationException |
133 | 125 | * @throws SiteNotFoundException |
| 126 | + * @throws TransportExceptionInterface |
134 | 127 | */ |
135 | 128 | protected function sendNewsletterToReceiverInQueue(Queue $queue): void |
136 | 129 | { |
@@ -170,13 +163,10 @@ protected function getSubject(Queue $queue): string |
170 | 163 | * @param Queue $queue |
171 | 164 | * @return string |
172 | 165 | * @throws ArgumentMissingException |
173 | | - * @throws Exception |
174 | 166 | * @throws ExtensionConfigurationExtensionNotConfiguredException |
175 | 167 | * @throws ExtensionConfigurationPathDoesNotExistException |
176 | 168 | * @throws IllegalObjectTypeException |
177 | 169 | * @throws InvalidConfigurationTypeException |
178 | | - * @throws InvalidSlotException |
179 | | - * @throws InvalidSlotReturnException |
180 | 170 | * @throws MisconfigurationException |
181 | 171 | * @throws SiteNotFoundException |
182 | 172 | */ |
@@ -204,12 +194,9 @@ protected function getBodyText(Queue $queue): string |
204 | 194 | * @param string $bodytext |
205 | 195 | * @return string |
206 | 196 | * @throws ArgumentMissingException |
207 | | - * @throws Exception |
208 | 197 | * @throws ExtensionConfigurationExtensionNotConfiguredException |
209 | 198 | * @throws ExtensionConfigurationPathDoesNotExistException |
210 | 199 | * @throws IllegalObjectTypeException |
211 | | - * @throws InvalidSlotException |
212 | | - * @throws InvalidSlotReturnException |
213 | 200 | * @throws MisconfigurationException |
214 | 201 | * @throws SiteNotFoundException |
215 | 202 | */ |
|
0 commit comments