Add ServerTransferringException, use is_null
This commit is contained in:
parent
5668a780e2
commit
fd848985ee
9 changed files with 36 additions and 14 deletions
14
app/Exceptions/Http/Server/ServerTransferringException.php
Normal file
14
app/Exceptions/Http/Server/ServerTransferringException.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace Pterodactyl\Exceptions\Http\Server;
|
||||
|
||||
use Illuminate\Http\Response;
|
||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||
|
||||
class ServerTransferringException extends HttpException
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct(Response::HTTP_CONFLICT, 'Server is currently being transferred.');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue