2018-02-23 00:44:15 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Exceptions;
|
|
|
|
|
|
|
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
|
|
|
|
2018-03-20 09:50:40 +08:00
|
|
|
/**
|
|
|
|
* Class BidExists
|
|
|
|
*/
|
2018-02-23 00:44:15 +08:00
|
|
|
class BidExists extends HttpException
|
|
|
|
{
|
2018-03-20 09:50:40 +08:00
|
|
|
public function __construct(
|
|
|
|
string $message = null,
|
|
|
|
\Exception $previous = null,
|
|
|
|
int $code = 0,
|
|
|
|
array $headers = []
|
|
|
|
) {
|
2018-02-23 00:44:15 +08:00
|
|
|
parent::__construct(
|
|
|
|
409,
|
|
|
|
'A bid already exists for this flight',
|
2019-05-13 02:26:44 +08:00
|
|
|
$previous,
|
|
|
|
$headers,
|
|
|
|
$code
|
2018-02-23 00:44:15 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|