mirror of
https://github.com/koel/koel
synced 2024-11-14 00:17:13 +00:00
15 lines
330 B
PHP
15 lines
330 B
PHP
<?php
|
|
|
|
namespace App\Exceptions;
|
|
|
|
use App\Models\Podcast;
|
|
use App\Models\User;
|
|
use Exception;
|
|
|
|
final class UserAlreadySubscribedToPodcast extends Exception
|
|
{
|
|
public static function make(User $user, Podcast $podcast): self
|
|
{
|
|
return new self("User $user->id has already subscribed to podcast $podcast->id");
|
|
}
|
|
}
|