Total Complexity | 1 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class FailedToDeserializeTheCollection extends RuntimeException implements DeserializationFailure |
||
15 | { |
||
16 | /** |
||
17 | * Produces a deserialization exception to throw when a "foreign" exception |
||
18 | * was encountered during the collection deserialization process. |
||
19 | * |
||
20 | * Prepends the original exception message with additional information on |
||
21 | * what happened when the problem occurred. |
||
22 | * |
||
23 | * @param Throwable $exception The original exception that was caught |
||
24 | * while deserialization the collection. |
||
25 | * @return DeserializationFailure The deserialization exception to throw in |
||
26 | * place of the encountered exception. |
||
27 | */ |
||
28 | public static function encountered(Throwable $exception): DeserializationFailure |
||
37 |