Check for departure airport restrictions #221
This commit is contained in:
@@ -2,24 +2,12 @@
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||
|
||||
/**
|
||||
* Class AircraftPermissionDenied
|
||||
* @package App\Exceptions
|
||||
*/
|
||||
class AircraftPermissionDenied extends HttpException
|
||||
class AircraftPermissionDenied extends InternalError
|
||||
{
|
||||
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
|
||||
);
|
||||
}
|
||||
public const FIELD = 'aircraft_id';
|
||||
public const MESSAGE = 'User is not allowed to fly this aircraft';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user