Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
NotificationTransportException
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4/**
5 * SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
6 * SPDX-License-Identifier: AGPL-3.0-or-later
7 */
8
9namespace OCA\Libresign\Exception;
10
11use OCA\Libresign\Enum\NotificationDeliveryState;
12
13/** A channel-independent transport result. Do not log provider response bodies. */
14class NotificationTransportException extends \RuntimeException {
15    public function __construct(
16        string $message,
17        public readonly NotificationDeliveryState $outcome,
18        public readonly string $reasonCode,
19        ?\Throwable $previous = null,
20    ) {
21        parent::__construct($message, 0, $previous);
22    }
23}