SingerLimitException.php
553 Bytes
<?php
namespace App\Exceptions;
use App\Models\User;
use Exception;
use Throwable;
class SingerLimitException extends Exception
{
public User $user;
public int $masterId;
public int $maxSingerNum;
public function __construct(User $user, int $masterId, int $maxSingerNum, string $message = "", int $code = 0, ?Throwable $previous = NULL)
{
$this->user = $user;
$this->masterId = $masterId;
$this->maxSingerNum = $maxSingerNum;
parent::__construct($message, $code, $previous);
}
}