Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| RoutingMismatchException | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Exceptions; |
| 4 | |
| 5 | use App\Models\Feed; |
| 6 | use App\Models\PlatformChannel; |
| 7 | |
| 8 | class RoutingMismatchException extends RoutingException |
| 9 | { |
| 10 | public function __construct(Feed $feed, PlatformChannel $channel) |
| 11 | { |
| 12 | $message = sprintf( |
| 13 | "Language mismatch: Feed '%s' is in '%s' but channel '%s' is set to '%s'. Feed and channel languages must match for proper content routing.", |
| 14 | $feed->name, |
| 15 | $feed->language, |
| 16 | $channel->name, |
| 17 | $channel->language |
| 18 | ); |
| 19 | |
| 20 | parent::__construct($message); |
| 21 | } |
| 22 | } |