Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| NotificationPreparationException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | /** |
| 5 | * SPDX-FileCopyrightText: 2026 LibreCode coop and contributors |
| 6 | * SPDX-License-Identifier: AGPL-3.0-or-later |
| 7 | */ |
| 8 | |
| 9 | namespace OCA\Libresign\Exception; |
| 10 | |
| 11 | /** The notification was not submitted because required data was not persisted. */ |
| 12 | final class NotificationPreparationException extends \RuntimeException { |
| 13 | public function __construct( |
| 14 | public readonly string $reasonCode, |
| 15 | ?\Throwable $previous = null, |
| 16 | ) { |
| 17 | parent::__construct('Notification preparation failed before SMTP submission', 0, $previous); |
| 18 | } |
| 19 | } |