phpvms/app/Exceptions/AircraftPermissionDenied.php
2018-02-22 15:15:00 -06:00

21 lines
446 B
PHP

<?php
/**
*
*/
namespace App\Exceptions;
use Symfony\Component\HttpKernel\Exception\HttpException;
class AircraftPermissionDenied extends HttpException
{
public function __construct(string $message = null, \Exception $previous = null, int $code = 0, array $headers = [])
{
parent::__construct(
400,
'User is not allowed to fly this aircraft',
$previous, $headers, $code
);
}
}