Add initial go at user created databases for servers, still needs cleaning
This commit is contained in:
parent
87b96bdfc8
commit
07893effa3
11 changed files with 314 additions and 25 deletions
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace Pterodactyl\Exceptions\Service\Database;
|
||||
|
||||
use Pterodactyl\Exceptions\PterodactylException;
|
||||
|
||||
class DatabaseClientFeatureNotEnabledException extends PterodactylException
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('Client database creation is not enabled in this Panel.');
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace Pterodactyl\Exceptions\Service\Database;
|
||||
|
||||
use Pterodactyl\Exceptions\DisplayException;
|
||||
|
||||
class NoSuitableDatabaseHostException extends DisplayException
|
||||
{
|
||||
/**
|
||||
* NoSuitableDatabaseHostException constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('No database host was found that meets the requirements for this server.');
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace Pterodactyl\Exceptions\Service\Database;
|
||||
|
||||
use Pterodactyl\Exceptions\DisplayException;
|
||||
|
||||
class TooManyDatabasesException extends DisplayException
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('Operation aborted: creating a new database would put this server over the defined limit.');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue