Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | /** |
| 6 | * This file is part of fast-forward/fork. |
| 7 | * |
| 8 | * This source file is subject to the license bundled |
| 9 | * with this source code in the file LICENSE. |
| 10 | * |
| 11 | * @copyright Copyright (c) 2026 Felipe Sayão Lobato Abreu <github@mentordosnerds.com> |
| 12 | * @license https://opensource.org/licenses/MIT MIT License |
| 13 | * |
| 14 | * @see https://github.com/php-fast-forward/fork |
| 15 | * @see https://github.com/php-fast-forward |
| 16 | * @see https://datatracker.ietf.org/doc/html/rfc2119 |
| 17 | */ |
| 18 | |
| 19 | namespace FastForward\Fork\Exception; |
| 20 | |
| 21 | use Throwable; |
| 22 | |
| 23 | /** |
| 24 | * Represents the base contract for all exceptions thrown by the fork library. |
| 25 | * |
| 26 | * All custom exceptions defined by the library MUST implement this interface |
| 27 | * to allow consistent and type-safe exception handling across the system. |
| 28 | * |
| 29 | * Consumers MAY use this interface to catch all library-specific exceptions |
| 30 | * without interfering with unrelated runtime exceptions. |
| 31 | * |
| 32 | * Implementations SHOULD NOT extend this interface outside the library boundary |
| 33 | * unless they are explicitly designed to integrate with the fork ecosystem. |
| 34 | */ |
| 35 | interface ForkExceptionInterface extends Throwable {} |