mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 13:34:05 +00:00
21 lines
454 B
PHP
21 lines
454 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\Database\Exceptions;
|
|
|
|
use Stancl\Tenancy\Contracts\TenantCannotBeCreatedException;
|
|
|
|
class TenantDatabaseUserAlreadyExistsException extends TenantCannotBeCreatedException
|
|
{
|
|
public function __construct(
|
|
protected string $user,
|
|
) {
|
|
parent::__construct();
|
|
}
|
|
|
|
public function reason(): string
|
|
{
|
|
return "Database user {$this->user} already exists.";
|
|
}
|
|
}
|