mirror of
https://github.com/koel/koel
synced 2024-12-26 12:33:06 +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");
|
|
}
|
|
}
|