mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 02:04:04 +00:00
18 lines
362 B
PHP
18 lines
362 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\Contracts;
|
|
|
|
abstract class TenantCannotBeCreatedException extends \Exception
|
|
{
|
|
abstract public function reason(): string;
|
|
|
|
/** @var string */
|
|
protected $message;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->message = 'Tenant cannot be created. Reason: ' . $this->reason();
|
|
}
|
|
}
|