1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-14 11:04:03 +00:00
tenancy/src/Exceptions/TenantCouldNotBeIdentifiedException.php

26 lines
814 B
PHP

<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Exceptions;
use Facade\IgnitionContracts\BaseSolution;
use Facade\IgnitionContracts\ProvidesSolution;
use Facade\IgnitionContracts\Solution;
class TenantCouldNotBeIdentifiedException extends \Exception implements ProvidesSolution
{
public function __construct($domain)
{
parent::__construct("Tenant could not be identified on domain $domain");
}
public function getSolution(): Solution
{
return BaseSolution::create('Tenant could not be identified on this domain')
->setSolutionDescription('Did you forget to create a tenant for this domain?')
->setDocumentationLinks([
'Creating Tenants' => 'https://tenancy.samuelstancl.me/docs/v2/creating-tenants/',
]);
}
}