2018-02-23 05:15:00 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Exceptions;
|
|
|
|
|
|
|
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
|
|
|
|
2018-03-20 09:50:40 +08:00
|
|
|
/**
|
|
|
|
* Class PirepCancelled
|
|
|
|
*/
|
2018-02-23 05:15:00 +08:00
|
|
|
class PirepCancelled 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 05:15:00 +08:00
|
|
|
parent::__construct(
|
|
|
|
400,
|
|
|
|
'PIREP has been cancelled, updates are not allowed',
|
|
|
|
$previous, $headers, $code
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|